Sage Intacct SDK for PHP
AbstractInvoice Class Reference
Inheritance diagram for AbstractInvoice:
AbstractFunction FunctionInterface InvoiceCreate InvoiceDelete InvoiceReverse

Public Member Functions

 getRecordNo ()
 
 setRecordNo ($recordNo)
 
 getCustomerId ()
 
 setCustomerId ($customerId)
 
 getTransactionDate ()
 
 setTransactionDate ($transactionDate)
 
 getGlPostingDate ()
 
 setGlPostingDate ($glPostingDate)
 
 getAction ()
 
 setAction ($action)
 
 getSummaryRecordNo ()
 
 setSummaryRecordNo ($summaryRecordNo)
 
 getInvoiceNumber ()
 
 setInvoiceNumber ($invoiceNumber)
 
 getDescription ()
 
 setDescription ($description)
 
 getExternalId ()
 
 setExternalId ($externalId)
 
 getBaseCurrency ()
 
 setBaseCurrency ($baseCurrency)
 
 getTransactionCurrency ()
 
 setTransactionCurrency ($transactionCurrency)
 
 getExchangeRateDate ()
 
 setExchangeRateDate ($exchangeRateDate)
 
 getExchangeRateValue ()
 
 setExchangeRateValue ($exchangeRateValue)
 
 getExchangeRateType ()
 
 setExchangeRateType ($exchangeRateType)
 
 isDoNotPostToGL ()
 
 setDoNotPostToGL ($doNotPostToGL)
 
 getDueDate ()
 
 setDueDate ($dueDate)
 
 getPaymentTerm ()
 
 setPaymentTerm ($paymentTerm)
 
 getReferenceNumber ()
 
 setReferenceNumber ($referenceNumber)
 
 isOnHold ()
 
 setOnHold ($onHold)
 
 getBillToContactName ()
 
 setBillToContactName ($billToContactName)
 
 getShipToContactName ()
 
 setShipToContactName ($shipToContactName)
 
 getAttachmentsId ()
 
 setAttachmentsId ($attachmentsId)
 
 getTaxSolutionId ()
 
 setTaxSolutionId (string $taxSolutionId)
 
 getLines ()
 
 setLines ($lines)
 
- Public Member Functions inherited from AbstractFunction
 getControlId ()
 
 setControlId (string $controlId='')
 
 __construct (string $controlId='')
 
 writeXml (XMLWriter &$xml)
 
 getControlId ()
 
 setControlId (string $controlId)
 
 writeXml (XMLWriter &$xml)
 

Protected Member Functions

 writeXmlMultiCurrencySection (XMLWriter &$xml)
 

Protected Attributes

 $recordNo
 
 $customerId
 
 $transactionDate
 
 $glPostingDate
 
 $action
 
 $summaryRecordNo
 
 $invoiceNumber
 
 $description
 
 $externalId
 
 $baseCurrency
 
 $transactionCurrency
 
 $exchangeRateDate
 
 $exchangeRateValue
 
 $exchangeRateType
 
 $doNotPostToGL
 
 $dueDate
 
 $paymentTerm
 
 $referenceNumber
 
 $onHold
 
 $billToContactName
 
 $shipToContactName
 
 $attachmentsId
 
 $taxSolutionId
 
 $lines = []
 
- Protected Attributes inherited from AbstractFunction
 $controlId = ''
 

Member Function Documentation

◆ getAction()

getAction ( )

Get action

Returns
string

◆ getAttachmentsId()

getAttachmentsId ( )

Get attachments ID

Returns
string

◆ getBaseCurrency()

getBaseCurrency ( )

Get base currency

Returns
string

◆ getBillToContactName()

getBillToContactName ( )

Get bill to contact name

Returns
string

◆ getCustomerId()

getCustomerId ( )

Get customer ID

Returns
string

◆ getDescription()

getDescription ( )

Get description

Returns
string

◆ getDueDate()

getDueDate ( )

Get due date

Returns
\DateTime

◆ getExchangeRateDate()

getExchangeRateDate ( )

Get exchange rate date

Returns
\DateTime

◆ getExchangeRateType()

getExchangeRateType ( )

Get exchange rate type

Returns
string

◆ getExchangeRateValue()

getExchangeRateValue ( )

Get exchange rate value

Returns
float

◆ getExternalId()

getExternalId ( )

Get external ID

Returns
string

◆ getGlPostingDate()

getGlPostingDate ( )

Get GL posting date

Returns
\DateTime

◆ getInvoiceNumber()

getInvoiceNumber ( )

Get invoice number

Returns
string

◆ getLines()

getLines ( )

Get invoice lines

Returns
AbstractInvoiceLine[]

◆ getPaymentTerm()

getPaymentTerm ( )

Get payment term

Returns
string

◆ getRecordNo()

getRecordNo ( )

Get record number

Returns
int|string

◆ getReferenceNumber()

getReferenceNumber ( )

Get reference number

Returns
string

◆ getShipToContactName()

getShipToContactName ( )

Get ship to contact name

Returns
string

◆ getSummaryRecordNo()

getSummaryRecordNo ( )

Get summary record number

Returns
int|string

◆ getTaxSolutionId()

getTaxSolutionId ( )
Returns
string

◆ getTransactionCurrency()

getTransactionCurrency ( )

Get transaction currency

Returns
string

◆ getTransactionDate()

getTransactionDate ( )

Get transaction date

Returns
\DateTime

◆ isDoNotPostToGL()

isDoNotPostToGL ( )

Get do not post to general ledger

Returns
bool

◆ isOnHold()

isOnHold ( )

Get on hold

Returns
bool

◆ setAction()

setAction (   $action)

Set action

Parameters
string$action

◆ setAttachmentsId()

setAttachmentsId (   $attachmentsId)

Set attachments ID

Parameters
string$attachmentsId

◆ setBaseCurrency()

setBaseCurrency (   $baseCurrency)

Set base currency

Parameters
string$baseCurrency

◆ setBillToContactName()

setBillToContactName (   $billToContactName)

Set bill to contact name

Parameters
string$billToContactName

◆ setCustomerId()

setCustomerId (   $customerId)

Set customer ID

Parameters
string$customerId

◆ setDescription()

setDescription (   $description)

Set description

Parameters
string$description

◆ setDoNotPostToGL()

setDoNotPostToGL (   $doNotPostToGL)

Set do not post to general ledger

Parameters
bool$doNotPostToGL

◆ setDueDate()

setDueDate (   $dueDate)

Set due date

Parameters
\DateTime$dueDate

◆ setExchangeRateDate()

setExchangeRateDate (   $exchangeRateDate)

Set exchange rate date

Parameters
\DateTime$exchangeRateDate

◆ setExchangeRateType()

setExchangeRateType (   $exchangeRateType)

Set exchange rate type

Parameters
string$exchangeRateType

◆ setExchangeRateValue()

setExchangeRateValue (   $exchangeRateValue)

Set exchange rate value

Parameters
float$exchangeRateValue

◆ setExternalId()

setExternalId (   $externalId)

Set external ID

Parameters
string$externalId

◆ setGlPostingDate()

setGlPostingDate (   $glPostingDate)

Set GL posting date

Parameters
\DateTime$glPostingDate

◆ setInvoiceNumber()

setInvoiceNumber (   $invoiceNumber)

Set invoice number

Parameters
string$invoiceNumber

◆ setLines()

setLines (   $lines)

Set invoice lines

Parameters
AbstractInvoiceLine[]$lines

◆ setOnHold()

setOnHold (   $onHold)

Set on hold

Parameters
bool$onHold

◆ setPaymentTerm()

setPaymentTerm (   $paymentTerm)

Set payment term

Parameters
string$paymentTerm

◆ setRecordNo()

setRecordNo (   $recordNo)

Set record number

Parameters
int | string$recordNo

◆ setReferenceNumber()

setReferenceNumber (   $referenceNumber)

Set reference number

Parameters
string$referenceNumber

◆ setShipToContactName()

setShipToContactName (   $shipToContactName)

Set ship to contact name

Parameters
string$shipToContactName

◆ setSummaryRecordNo()

setSummaryRecordNo (   $summaryRecordNo)

Set summary record number

Parameters
int | string$summaryRecordNo

◆ setTaxSolutionId()

setTaxSolutionId ( string  $taxSolutionId)
Parameters
string$taxSolutionId

◆ setTransactionCurrency()

setTransactionCurrency (   $transactionCurrency)

Set transaction currency

Parameters
string$transactionCurrency

◆ setTransactionDate()

setTransactionDate (   $transactionDate)

Set transaction date

Parameters
\DateTime$transactionDate

◆ writeXmlMultiCurrencySection()

writeXmlMultiCurrencySection ( XMLWriter $xml)
protected
Parameters
XMLWriter$xml

Field Documentation

◆ $action

$action
protected

◆ $attachmentsId

$attachmentsId
protected

◆ $baseCurrency

$baseCurrency
protected

◆ $billToContactName

$billToContactName
protected

◆ $customerId

$customerId
protected

◆ $description

$description
protected

◆ $doNotPostToGL

$doNotPostToGL
protected

◆ $dueDate

$dueDate
protected

◆ $exchangeRateDate

$exchangeRateDate
protected

◆ $exchangeRateType

$exchangeRateType
protected

◆ $exchangeRateValue

$exchangeRateValue
protected

◆ $externalId

$externalId
protected

◆ $glPostingDate

$glPostingDate
protected

◆ $invoiceNumber

$invoiceNumber
protected

◆ $lines

$lines = []
protected

◆ $onHold

$onHold
protected

◆ $paymentTerm

$paymentTerm
protected

◆ $recordNo

$recordNo
protected

◆ $referenceNumber

$referenceNumber
protected

◆ $shipToContactName

$shipToContactName
protected

◆ $summaryRecordNo

$summaryRecordNo
protected

◆ $taxSolutionId

$taxSolutionId
protected

◆ $transactionCurrency

$transactionCurrency
protected

◆ $transactionDate

$transactionDate
protected