Service - CommerceAccounting Inventory: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 48: Line 48:
== inventoryAssetPurchased ==
== inventoryAssetPurchased ==


* maybe triggered from ComAcc Sale saleCreated flow, because needs to know asset purchase journalId
* maybe triggered from ComAcc Sale saleCommitted flow, because needs to know asset purchase journalId
* simply saves the link for future actions
* simply saves the link for future actions



Revision as of 13:59, 12 January 2026

Overview

Creates connections between Commerce Inventory and Accounting Accounts where needed.

Repository

...

Object Schemas

Additional Information
Per Service Schemas
{
	objectType: "comAccAssetPurchaseLink",
	canDelete: false,
	belongTo: {
		serviceTag: "User",
		objectType: "user"
	},
	addOnDataStructure: [],
	storageResources: {
		"dynamo": {
			"storageType": "dynamoDB",
			"tableName": "comAccAssetPurchaseLink",
		}
    },
    fieldNames: {
		// probably have two dynamo tables, one identified by inventoryId, one by journalId
		
    },
    identifiers: [
		{
			// see above note
		}
    ]
}
  • maintains a link between inventoryId and asset purchase journalId
  • required so that depreciation can be accounted for when asset is sold

Relationships

...

flowSchemas

inventoryAssetPurchased

  • maybe triggered from ComAcc Sale saleCommitted flow, because needs to know asset purchase journalId
  • simply saves the link for future actions

Working documents

CommerceAccounting Inventory