Service - CommerceAccounting Inventory
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