Service - Purchase Line Item Manager
Revision as of 13:36, 19 January 2026 by Sven the Barbarian (talk | contribs)
Overview
Each entry in a purchase is a line item, different line items types are handled by handler services.
Repository
....
Object Schemas
- Additional Information
- Per Service Schemas
objType
purchaseLineItem
{
objectType: "purchaseLineItem",
canDelete: false,
belongTo: {
serviceTag: "Business",
objectType: "business"
},
addOnDataStructure: [
{
type:"versionedData",
versionedDataLabel: "purchaseLineItemDetail",
storageResourceTag : "myGraph",
fieldNames: {
lineItemQuantity: {
type: "integer",
storageResourceTags: ['myGraph']
},
lineItemUnitPrice: {
type: "numeric",
storageResourceTags: ['myGraph']
},
}
},
],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
purchaseLineItemId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "purchaseLineItemId"
}
]
}
flowSchemas
updatePurchaseLineItem
- if have ComAcc plugin enabled, send request to plugin to check if purchase has been locked on Accounting
- set sale to purchaseCommitted=updateWorking