class InventoryTransactionCreate extends AbstractInventoryTransaction

Create a new inventory control transaction record

Traits

Constants

STATE_DRAFT

STATE_PENDING

STATE_CLOSED

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

string
getDocumentId()

No description

setDocumentId(string $documentId)

No description

setTransactionDefinition(string $transactionDefinition)

No description

setTransactionDate(DateType $transactionDate)

No description

string
getCreatedFrom()

No description

setCreatedFrom(string $createdFrom)

No description

string
getDocumentNumber()

No description

setDocumentNumber(string $documentNumber)

No description

string
getReferenceNumber()

No description

setReferenceNumber(string $referenceNumber)

No description

string
getMessage()

No description

setMessage(string $message)

No description

string
getExternalId()

No description

setExternalId(string $externalId)

No description

string
getBaseCurrency()

No description

setBaseCurrency(string $baseCurrency)

No description

string
getState()

No description

setState(string $state)

No description

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 34
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 AbstractInventoryTransaction at line line 77
string getDocumentId()

Return Value

string

in AbstractInventoryTransaction at line line 85
setDocumentId(string $documentId)

Parameters

string $documentId

in AbstractInventoryTransaction at line line 93
string getTransactionDefinition()

Return Value

string

in AbstractInventoryTransaction at line line 101
setTransactionDefinition(string $transactionDefinition)

Parameters

string $transactionDefinition

in AbstractInventoryTransaction at line line 109
DateType getTransactionDate()

Return Value

DateType

in AbstractInventoryTransaction at line line 117
setTransactionDate(DateType $transactionDate)

Parameters

DateType $transactionDate

in AbstractInventoryTransaction at line line 125
string getCreatedFrom()

Return Value

string

in AbstractInventoryTransaction at line line 133
setCreatedFrom(string $createdFrom)

Parameters

string $createdFrom

in AbstractInventoryTransaction at line line 141
string getDocumentNumber()

Return Value

string

in AbstractInventoryTransaction at line line 149
setDocumentNumber(string $documentNumber)

Parameters

string $documentNumber

in AbstractInventoryTransaction at line line 157
string getReferenceNumber()

Return Value

string

in AbstractInventoryTransaction at line line 165
setReferenceNumber(string $referenceNumber)

Parameters

string $referenceNumber

in AbstractInventoryTransaction at line line 173
string getMessage()

Return Value

string

in AbstractInventoryTransaction at line line 181
setMessage(string $message)

Parameters

string $message

in AbstractInventoryTransaction at line line 189
string getExternalId()

Return Value

string

in AbstractInventoryTransaction at line line 197
setExternalId(string $externalId)

Parameters

string $externalId

in AbstractInventoryTransaction at line line 205
string getBaseCurrency()

Return Value

string

in AbstractInventoryTransaction at line line 213
setBaseCurrency(string $baseCurrency)

Parameters

string $baseCurrency

in AbstractInventoryTransaction at line line 221
string getState()

Return Value

string

in AbstractInventoryTransaction at line line 229
setState(string $state)

Parameters

string $state

in AbstractInventoryTransaction at line line 237
AbstractTransactionSubtotal[] getSubtotals()

in AbstractInventoryTransaction at line line 245
setSubtotals(AbstractTransactionSubtotal[] $subtotals)

Parameters

AbstractTransactionSubtotal[] $subtotals

in AbstractInventoryTransaction at line line 261
setLines(AbstractInventoryTransactionLine[] $lines)

Parameters

AbstractInventoryTransactionLine[] $lines