class ApAdjustmentCreate extends AbstractApAdjustment

Create a new accounts payable adjustment record

Traits

Methods

getControlId()

Get control ID

setControlId($controlId = null)

Set control ID

__construct(string $controlId = null)

Initializes the class with the given parameters.

writeXml(XMLWriter $xml)

Write the function block XML

array
getCustomFields()

Get custom fields

setCustomFields(array $customFields)

Set custom fields

int|string
getRecordNo()

Get record number

setRecordNo(int|string $recordNo)

Set record number

string
getVendorId()

Get vendor ID

setVendorId(string $vendorId)

Set vendor ID

getTransactionDate()

Get transaction date

setTransactionDate(DateType $transactionDate)

Set transaction date

getGlPostingDate()

Get GL posting date

setGlPostingDate(DateType $glPostingDate)

Set GL posting date

string
getAction()

Get action

setAction(string $action)

Set action

int|string
getSummaryRecordNo()

Get summary record number

setSummaryRecordNo(int|string $summaryRecordNo)

Set summary record number

string
getBillNumber()

Get bill number

setBillNumber(string $billNumber)

Set bill number

string
getDescription()

Get description

setDescription(string $description)

Set description

string
getExternalId()

Get external ID

setExternalId(string $externalId)

Set external ID

string
getBaseCurrency()

Get base currency

setBaseCurrency(string $baseCurrency)

Set base currency

string
getTransactionCurrency()

Get transaction currency

setTransactionCurrency(string $transactionCurrency)

Set transaction currency

getExchangeRateDate()

Get exchange rate date

setExchangeRateDate(DateType $exchangeRateDate)

Set exchange rate date

float
getExchangeRateValue()

Get exchange rate value

setExchangeRateValue(float $exchangeRateValue)

Set exchange rate value

string
getExchangeRateType()

Get exchange rate type

setExchangeRateType(string $exchangeRateType)

Set exchange rate type

boolean
isDoNotPostToGL()

Get do not post to general ledger

setDoNotPostToGL(boolean $doNotPostToGL)

Set do not post to general ledger

string
getAttachmentsId()

Get attachments ID

setAttachmentsId(string $attachmentsId)

Set attachments ID

string
getAdjustmentNumber()

Get adjustment number

setAdjustmentNumber(string $adjustmentNumber)

Set adjustment number

getLines()

Get AP adjustment lines

setLines(AbstractApAdjustmentLine[] $lines)

Set AP adjustment lines

Details

in AbstractFunction at line line 35
getControlId()

Get control ID

in AbstractFunction at line line 46
setControlId($controlId = null)

Set control ID

Parameters

$controlId

Exceptions

InvalidArgumentException

in AbstractFunction at line line 67
__construct(string $controlId = null)

Initializes the class with the given parameters.

Parameters

string $controlId Control ID, default=random UUID

at line line 35
writeXml(XMLWriter $xml)

Write the function block XML

Parameters

XMLWriter $xml

in CustomFieldsTrait at line line 33
array getCustomFields()

Get custom fields

Return Value

array

in CustomFieldsTrait at line line 43
setCustomFields(array $customFields)

Set custom fields

Parameters

array $customFields

in AbstractApAdjustment at line line 89
int|string getRecordNo()

Get record number

Return Value

int|string

in AbstractApAdjustment at line line 99
setRecordNo(int|string $recordNo)

Set record number

Parameters

int|string $recordNo

in AbstractApAdjustment at line line 109
string getVendorId()

Get vendor ID

Return Value

string

in AbstractApAdjustment at line line 119
setVendorId(string $vendorId)

Set vendor ID

Parameters

string $vendorId

in AbstractApAdjustment at line line 129
DateType getTransactionDate()

Get transaction date

Return Value

DateType

in AbstractApAdjustment at line line 139
setTransactionDate(DateType $transactionDate)

Set transaction date

Parameters

DateType $transactionDate

in AbstractApAdjustment at line line 149
DateType getGlPostingDate()

Get GL posting date

Return Value

DateType

in AbstractApAdjustment at line line 159
setGlPostingDate(DateType $glPostingDate)

Set GL posting date

Parameters

DateType $glPostingDate

in AbstractApAdjustment at line line 169
string getAction()

Get action

Return Value

string

in AbstractApAdjustment at line line 180
setAction(string $action)

Set action

Parameters

string $action

in AbstractApAdjustment at line line 190
int|string getSummaryRecordNo()

Get summary record number

Return Value

int|string

in AbstractApAdjustment at line line 200
setSummaryRecordNo(int|string $summaryRecordNo)

Set summary record number

Parameters

int|string $summaryRecordNo

in AbstractApAdjustment at line line 210
string getBillNumber()

Get bill number

Return Value

string

in AbstractApAdjustment at line line 220
setBillNumber(string $billNumber)

Set bill number

Parameters

string $billNumber

in AbstractApAdjustment at line line 230
string getDescription()

Get description

Return Value

string

in AbstractApAdjustment at line line 240
setDescription(string $description)

Set description

Parameters

string $description

in AbstractApAdjustment at line line 250
string getExternalId()

Get external ID

Return Value

string

in AbstractApAdjustment at line line 260
setExternalId(string $externalId)

Set external ID

Parameters

string $externalId

in AbstractApAdjustment at line line 270
string getBaseCurrency()

Get base currency

Return Value

string

in AbstractApAdjustment at line line 280
setBaseCurrency(string $baseCurrency)

Set base currency

Parameters

string $baseCurrency

in AbstractApAdjustment at line line 290
string getTransactionCurrency()

Get transaction currency

Return Value

string

in AbstractApAdjustment at line line 300
setTransactionCurrency(string $transactionCurrency)

Set transaction currency

Parameters

string $transactionCurrency

in AbstractApAdjustment at line line 310
DateType getExchangeRateDate()

Get exchange rate date

Return Value

DateType

in AbstractApAdjustment at line line 320
setExchangeRateDate(DateType $exchangeRateDate)

Set exchange rate date

Parameters

DateType $exchangeRateDate

in AbstractApAdjustment at line line 330
float getExchangeRateValue()

Get exchange rate value

Return Value

float

in AbstractApAdjustment at line line 340
setExchangeRateValue(float $exchangeRateValue)

Set exchange rate value

Parameters

float $exchangeRateValue

in AbstractApAdjustment at line line 350
string getExchangeRateType()

Get exchange rate type

Return Value

string

in AbstractApAdjustment at line line 360
setExchangeRateType(string $exchangeRateType)

Set exchange rate type

Parameters

string $exchangeRateType

in AbstractApAdjustment at line line 370
boolean isDoNotPostToGL()

Get do not post to general ledger

Return Value

boolean

in AbstractApAdjustment at line line 380
setDoNotPostToGL(boolean $doNotPostToGL)

Set do not post to general ledger

Parameters

boolean $doNotPostToGL

in AbstractApAdjustment at line line 390
string getAttachmentsId()

Get attachments ID

Return Value

string

in AbstractApAdjustment at line line 400
setAttachmentsId(string $attachmentsId)

Set attachments ID

Parameters

string $attachmentsId

in AbstractApAdjustment at line line 410
string getAdjustmentNumber()

Get adjustment number

Return Value

string

in AbstractApAdjustment at line line 420
setAdjustmentNumber(string $adjustmentNumber)

Set adjustment number

Parameters

string $adjustmentNumber

in AbstractApAdjustment at line line 430
AbstractApAdjustmentLine[] getLines()

Get AP adjustment lines

Return Value

AbstractApAdjustmentLine[]

in AbstractApAdjustment at line line 440
setLines(AbstractApAdjustmentLine[] $lines)

Set AP adjustment lines

Parameters

AbstractApAdjustmentLine[] $lines