Service - CommerceAccounting Customer: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 26: Line 26:
"tableName": "comAccCustomerLink",
"tableName": "comAccCustomerLink",
}
}
"graph": {}
     },
     },
     fieldNames: {
     fieldNames: {
// businessId
// businessId
// customerId
// customerId
// accountlinkTag // type of link: accountsReceivable|..
// accountLinkTag // type of link: accountsReceivable|..
// accountId
// accountId
     },
     },
Line 41: Line 40:
{
{
type: "sortKey",
type: "sortKey",
fieldName: "accountlinkTag"
fieldName: "accountLinkTag"
},
},
     ]
     ]
Line 63: Line 62:
"tableName": "comAccDefaultCustomerLink",
"tableName": "comAccDefaultCustomerLink",
}
}
"graph": {}
     },
     },
     fieldNames: {
     fieldNames: {
// businessId
// businessId
// accountlinkTag // type of link: accountsReceivable|..
// accountLinkTag // type of link: accountsReceivable|..
// accountId
// accountId
     },
     },
Line 77: Line 75:
{
{
type: "sortKey",
type: "sortKey",
fieldName: "accountlinkTag"
fieldName: "accountLinkTag"
},
},
     ]
     ]
Line 94: Line 92:
* or maybe returns accountId to Sales createSale flow which sends to Accounting
* or maybe returns accountId to Sales createSale flow which sends to Accounting


= accountlinkTag =
= accountLinkTag =


== accountsReceivable ==
== accountsReceivable ==

Latest revision as of 12:59, 16 April 2026

Overview

Connects each customer to their Accounting accounts, such as accountsReceivable, and vice versa

Repository

...

Object Schemas

Additional Information
Per Service Schemas

comAccCustomerLink

{
	objectType: "comAccCustomerLink",
	canDelete: false,
	belongTo: {
		serviceTag: "ComAccLink",
		objectType: "comAccLinkByBusiness"
	},
	addOnDataStructure: [],
	storageResources: {
		"dynamo": {
			"storageType": "dynamoDB",
			"tableName": "comAccCustomerLink",
		}
    },
    fieldNames: {
		// businessId
		// customerId
		// accountLinkTag // type of link: accountsReceivable|..
		// accountId
    },
    identifiers: [
		{
			type: "partitionKey",
			fieldNames: ["businessId","customerId"],
		},
		{
			type: "sortKey",
			fieldName: "accountLinkTag"
		},
    ]
}

comAccDefaultCustomerLink

{
	objectType: "comAccDefaultCustomerLink",
	canDelete: false,
	belongTo: {
		serviceTag: "ComAccLink",
		objectType: "comAccLinkByBusiness"
	},
	addOnDataStructure: [],
	storageResources: {
		"dynamo": {
			"storageType": "dynamoDB",
			"tableName": "comAccDefaultCustomerLink",
		}
    },
    fieldNames: {
		// businessId
		// accountLinkTag // type of link: accountsReceivable|..
		// accountId
    },
    identifiers: [
		{
			type: "partitionKey",
			fieldName: "businessId",
		},
		{
		type: "sortKey",
		fieldName: "accountLinkTag"
		},
    ]
}

Relationships

...

flowSchemas

createSale

  • sends request to Accounting to create entries in comAccCustomerLink.accountlinkTag = accountsReceivable account
  • or maybe returns accountId to Sales createSale flow which sends to Accounting

accountLinkTag

accountsReceivable

Working documents

CommerceAccounting Customer