ZRM Docs
Domain Model

Purchase Order Line Item

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
purchaseOrderIdstringYesID of the associated purchase order
descriptionstringYesDescription
quantitynumberYesQuantity
unitCostnumberYesUnit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)YesStatus
receivedQuantitynumberYesReceived quantity
sortOrderintegerYesSort order
visibilityModeenum(global, workspace_local, shared)YesVisibility mode
bomLineIdstringNoID of the associated bom line
partNumberstringNoPart number
manufacturerstringNoManufacturer
totalCostunknownNoTotal cost
workspaceIdstringYesID of the associated workspace

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
purchaseOrderIdstringYesID of the associated purchase order
descriptionstringYesDescription
quantitynumberYesQuantity
unitCostnumberYesUnit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)Yes"pending"Status
receivedQuantitynumberYes0Received quantity
sortOrderintegerYes0Sort order
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode
bomLineIdstringNoID of the associated bom line
partNumberstringNoPart number
manufacturerstringNoManufacturer
totalCostunknownNoTotal cost
workspaceIdstringNoID of the associated workspace

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
descriptionstringNoDescription
quantitynumberNoQuantity
unitCostnumberNoUnit cost
statusenum(pending, ordered, shipped, received, backordered, canceled)No"pending"Status
receivedQuantitynumberNo0Received quantity
sortOrderintegerNo0Sort order
bomLineIdstringNoID of the associated bom line
partNumberstringNoPart number
manufacturerstringNoManufacturer
totalCostunknownNoTotal cost

On this page