Service - CommerceAccounting Customer: Difference between revisions
Jump to navigation
Jump to search
| Line 46: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == comAccCustomerDefaultLink == | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
objectType: " | objectType: "comAccCustomerDefaultLink", | ||
canDelete: false, | canDelete: false, | ||
addOnDataStructure: [], | addOnDataStructure: [], | ||
storageResources: { | storageResources: { | ||
"dynamo": { | "dynamo": { | ||
"storageType": "dynamoDB", | "storageType": "dynamoDB", | ||
"tableName": " | "tableName": "comAccCustomerDefaultLink", | ||
} | } | ||
}, | }, | ||
fieldNames: { | fieldNames: { | ||
// businessId | // businessId | ||
// accountLinkTag // type of link: | // accountLinkTag // type of link: accountsReceivable|.. | ||
// accountId | // accountId | ||
}, | }, | ||
Revision as of 05:06, 7 May 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: purchaseLineItem|..
// accountId
},
identifiers: [
{
type: "partitionKey",
fieldNames: ["businessId","customerId"],
},
{
type: "sortKey",
fieldName: "accountLinkTag"
},
]
}
comAccCustomerDefaultLink
{
objectType: "comAccCustomerDefaultLink",
canDelete: false,
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccCustomerDefaultLink",
}
},
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