Service - CommerceAccounting Inventory
Revision as of 13:27, 10 January 2026 by Sven the Barbarian (talk | contribs) (Created page with "= Overview = Handles changes in inventory in Commerce = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas <syntaxhighlight lang="JavaScript"> { objectType: "comAccInventoryPurchasedLink", canDelete: false, belongTo: { serviceTag: "User", objectType: "user" }, addOnDataStructure: [], storageResources: { "dynamo": { "storageType": "dynamoDB", "tableName": "comAccLink", } }, fieldNames: { // probably hav...")
Overview
Handles changes in inventory in Commerce
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
{
objectType: "comAccInventoryPurchasedLink",
canDelete: false,
belongTo: {
serviceTag: "User",
objectType: "user"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccLink",
}
},
fieldNames: {
// probably have two dynamo tables, one identified by saleLineItemId, one by journalId
},
identifiers: [
{
// see above note
}
]
}
- maintains a link between saleLineItemId and journalId, so can adjust if changes made to purchases
- can maybe use for all inventory types
Relationships
...
flowSchemas
inventoryGoodsPurchased
- accountTag: inventoryGoods
- when submitting purchase order, if is inventoryGoods make a positive entry in inventoryGoods(Asset) Accounting Account
inventoryGoodsPurchaseChange
- accountTag: inventoryGoods
- make adjustment to journal entry when purchase saleLineItemId changes
- perhaps handling removal of journal entry also