Service - CommerceAccounting Inventory

From Izara Wiki
Jump to navigation Jump to search

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: "ComAccLink",
		objectType: "comAccLink"
	},
	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