ModelInventory module

Transaction

A model in the Inventory module, with 18 members for templates, 16 API properties and 18 members for admin templates.

Inventory\Models\Frontend\Transaction Inventory\Models\Api\Transaction Inventory\Models\Backend\Transaction Also in Inventory: Batch Fulfillment FulfillmentItem Stock Warehouse
View
What Smarty and Twig templates receive. Properties in REST API responses and job payloads. What admin screen templates receive when you override them.

Templates view

Properties 18

Take no arguments.

# getId()
?int
# getProductCode()
?string
# getReason()
?string
# getUncommittedQuantity()
?int
# getAvailableQuantity()
?int
# getReservedQuantity()
?int
# getInTransitQuantity()
?int
# getOnHandQuantity()
?int
# getExpiry()
?DateTime
# getCreated()
?DateTime
# getModified()
?DateTime
# getFulfillment()
?Fulfillment
# getBatch()
?Batch
# getWarehouse()
?Warehouse
# getItem()
?Item
# getCreatedBy()
?User
# isHierarchicalModel() Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
# isVersionedModel() Not in API & Jobs
bool
Check whether a model is versioned

API & Jobs view

API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.

Properties 16

Read-only values on the record.

# id
?int
# productCode
?string
# reason
?string
# uncommittedQuantity
?int
# availableQuantity
?int
# reservedQuantity
?int
# inTransitQuantity
?int
# onHandQuantity
?int
# expiry
?DateTime
# created
?DateTime
# modified
?DateTime
# fulfillment
?Fulfillment
# batch
?Batch
# warehouse
?Warehouse
# item
?Item
# createdBy
?User

Admin view

AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.

Properties 18

Take no arguments.

# getId()
?int
# getProductCode()
?string
# getReason()
?string
# getUncommittedQuantity()
?int
# getAvailableQuantity()
?int
# getReservedQuantity()
?int
# getInTransitQuantity()
?int
# getOnHandQuantity()
?int
# getExpiry()
?DateTime
# getCreated()
?DateTime
# getModified()
?DateTime
# getFulfillment()
?Fulfillment
# getBatch()
?Batch
# getWarehouse()
?Warehouse
# getItem()
?Item
# getCreatedBy()
?User
# isHierarchicalModel() Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
# isVersionedModel() Not in API & Jobs
bool
Check whether a model is versioned