Service - Sale Line Item Manager: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Overview = Each entry in an invoice is a line item, different line items types are handled by handler services. = Repository = .... = Object Schemas = ; Additional Information: Per Service Schemas == objType == === saleLineItem === <syntaxhighlight lang="JavaScript"> { objectType: "saleLineItem", canDelete: false, belongTo: { serviceTag: "user", objectType: "user" }, addOnDataStructure: [], storageResources: { myGraph: { storageType: "graph",...") |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 19: | Line 19: | ||
canDelete: false, | canDelete: false, | ||
belongTo: { | belongTo: { | ||
serviceTag: " | serviceTag: "Business", | ||
objectType: " | objectType: "business" | ||
}, | }, | ||
addOnDataStructure: [], | addOnDataStructure: [ | ||
{ | |||
type:"versionedData", | |||
versionedDataLabel: "saleLineItemDetail", | |||
storageResourceTag : "myGraph", | |||
fieldNames: { | |||
lineItemQuantity: { | |||
type: "integer", | |||
storageResourceTags: ['myGraph'] | |||
}, | |||
lineItemUnitPrice: { | |||
type: "numeric", | |||
storageResourceTags: ['myGraph'] | |||
}, | |||
} | |||
}, | |||
], | |||
storageResources: { | storageResources: { | ||
myGraph: { | myGraph: { | ||
| Line 33: | Line 49: | ||
type: "string", | type: "string", | ||
randomOnCreate: true, | randomOnCreate: true, | ||
storageResourceTags: ['myGraph'] | storageResourceTags: ['myGraph'] | ||
}, | }, | ||
| Line 67: | Line 79: | ||
from: { | from: { | ||
objType: { | objType: { | ||
serviceTag: " | serviceTag: "SaleLineItemManager", | ||
objectType: "saleLineItem" | objectType: "saleLineItem" | ||
}, | }, | ||
| Line 74: | Line 86: | ||
to: { | to: { | ||
objType: { | objType: { | ||
serviceTag: " | serviceTag: "InventoryManager", | ||
objectType: "inventoryUnit" | objectType: "inventoryUnit" | ||
}, | }, | ||
| Line 84: | Line 96: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= flowSchemas = | |||
== updateSaleLineItem == | |||
* if have ComAcc plugin enabled, send request to plugin to check if sale has been locked on Accounting | |||
* set sale to saleCommitted=updateWorking | |||
= Working documents = | = Working documents = | ||
Latest revision as of 14:52, 18 January 2026
Overview
Each entry in an invoice is a line item, different line items types are handled by handler services.
Repository
....
Object Schemas
- Additional Information
- Per Service Schemas
objType
saleLineItem
{
objectType: "saleLineItem",
canDelete: false,
belongTo: {
serviceTag: "Business",
objectType: "business"
},
addOnDataStructure: [
{
type:"versionedData",
versionedDataLabel: "saleLineItemDetail",
storageResourceTag : "myGraph",
fieldNames: {
lineItemQuantity: {
type: "integer",
storageResourceTags: ['myGraph']
},
lineItemUnitPrice: {
type: "numeric",
storageResourceTags: ['myGraph']
},
}
},
],
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
fieldNames: {
saleLineItemId: {
type: "string",
randomOnCreate: true,
storageResourceTags: ['myGraph']
},
},
identifiers: [
{
type: "identifier",
fieldName: "saleLineItemId"
}
]
}
Object Relationships
includesInventoryUnit
{
includesInventoryUnit: {
storageResources: {
myGraph: {
storageType: "graph",
graphServerTag: "GraphHandler"
}
},
links: [
{
storageResourceTags: ["myGraph"],
from: {
objType: {
serviceTag: "SaleLineItemManager",
objectType: "saleLineItem"
},
linkType: "many",
},
to: {
objType: {
serviceTag: "InventoryManager",
objectType: "inventoryUnit"
},
linkType: "one"
}
}
]
}
}
flowSchemas
updateSaleLineItem
- if have ComAcc plugin enabled, send request to plugin to check if sale has been locked on Accounting
- set sale to saleCommitted=updateWorking