Sage Intacct SDK for PHP
AbstractJournalEntryLine Class Reference
Inheritance diagram for AbstractJournalEntryLine:
AbstractGlEntry JournalEntryLineCreate

Public Member Functions

 getGlAccountNumber ()
 
 setGlAccountNumber ($glAccountNumber)
 
 getTransactionAmount ()
 
 setTransactionAmount ($transactionAmount)
 
 getTransactionCurrency ()
 
 setTransactionCurrency ($transactionCurrency)
 
 getExchangeRateDate ()
 
 setExchangeRateDate ($exchangeRateDate)
 
 getExchangeRateValue ()
 
 setExchangeRateValue ($exchangeRateValue)
 
 getExchangeRateType ()
 
 setExchangeRateType ($exchangeRateType)
 
 getTransactionType ()
 
 setTransactionType ($transactionType)
 
- Public Member Functions inherited from AbstractGlEntry
 getDocumentNumber ()
 
 setDocumentNumber ($documentNumber)
 
 getAllocationId ()
 
 setAllocationId ($allocationId)
 
 getMemo ()
 
 setMemo ($memo)
 
 getDepartmentId ()
 
 setDepartmentId ($departmentId)
 
 getLocationId ()
 
 setLocationId ($locationId)
 
 getProjectId ()
 
 setProjectId ($projectId)
 
 getTaskId ()
 
 setTaskId ($taskId)
 
 getCustomerId ()
 
 setCustomerId ($customerId)
 
 getVendorId ()
 
 setVendorId ($vendorId)
 
 getEmployeeId ()
 
 setEmployeeId ($employeeId)
 
 getItemId ()
 
 setItemId ($itemId)
 
 getClassId ()
 
 setClassId ($classId)
 
 getContractId ()
 
 setContractId ($contractId)
 
 getWarehouseId ()
 
 setWarehouseId ($warehouseId)
 
 getCustomAllocationSplits ()
 
 setCustomAllocationSplits ($customAllocationSplits)
 
 writeXml (XMLWriter &$xml)
 

Data Fields

const TR_TYPE_CREDIT = -1
 
const TR_TYPE_DEBIT = 1
 
- Data Fields inherited from AbstractGlEntry
const CUSTOM_ALLOCATION_ID = 'Custom'
 

Protected Attributes

 $glAccountNumber
 
 $transactionAmount
 
 $transactionCurrency
 
 $exchangeRateDate
 
 $exchangeRateValue
 
 $exchangeRateType
 
 $transactionType
 
- Protected Attributes inherited from AbstractGlEntry
 $documentNumber
 
 $allocationId
 
 $memo
 
 $departmentId
 
 $locationId
 
 $projectId
 
 $taskId
 
 $customerId
 
 $vendorId
 
 $employeeId
 
 $itemId
 
 $classId
 
 $contractId
 
 $warehouseId
 
 $customAllocationSplits = []
 

Member Function Documentation

◆ getExchangeRateDate()

getExchangeRateDate ( )
Returns
\DateTime

◆ getExchangeRateType()

getExchangeRateType ( )
Returns
string

◆ getExchangeRateValue()

getExchangeRateValue ( )
Returns
float

◆ getGlAccountNumber()

getGlAccountNumber ( )
Returns
string

◆ getTransactionAmount()

getTransactionAmount ( )
Returns
float|string

◆ getTransactionCurrency()

getTransactionCurrency ( )
Returns
string

◆ getTransactionType()

getTransactionType ( )
Returns
string

◆ setExchangeRateDate()

setExchangeRateDate (   $exchangeRateDate)
Parameters
\DateTime$exchangeRateDate

◆ setExchangeRateType()

setExchangeRateType (   $exchangeRateType)
Parameters
string$exchangeRateType

◆ setExchangeRateValue()

setExchangeRateValue (   $exchangeRateValue)
Parameters
float$exchangeRateValue

◆ setGlAccountNumber()

setGlAccountNumber (   $glAccountNumber)
Parameters
string$glAccountNumber

◆ setTransactionAmount()

setTransactionAmount (   $transactionAmount)
Parameters
float | string$transactionAmount

◆ setTransactionCurrency()

setTransactionCurrency (   $transactionCurrency)
Parameters
string$transactionCurrency

◆ setTransactionType()

setTransactionType (   $transactionType)
Parameters
string$transactionType

Field Documentation

◆ $exchangeRateDate

$exchangeRateDate
protected

◆ $exchangeRateType

$exchangeRateType
protected

◆ $exchangeRateValue

$exchangeRateValue
protected

◆ $glAccountNumber

$glAccountNumber
protected

◆ $transactionAmount

$transactionAmount
protected

◆ $transactionCurrency

$transactionCurrency
protected

◆ $transactionType

$transactionType
protected

◆ TR_TYPE_CREDIT

const TR_TYPE_CREDIT = -1

◆ TR_TYPE_DEBIT

const TR_TYPE_DEBIT = 1