Service - Purchase Line Item Manager: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= 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 === <syntaxhighlight lang="JavaScript"> { objectType: "purchaseLineItem", canDelete: false, belongTo: { serviceTag: "Business", objectType: "business" }, addOnDataStructure: [ { type:"versionedData", versionedDat...") |
No edit summary |
||
| Line 58: | Line 58: | ||
} | } | ||
] | ] | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 13:36, 19 January 2026
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