Service - CommerceAccounting Vendor: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
Line 9: Line 9:
= Object Schemas =
= Object Schemas =
; Additional Information: [[Per Service Schemas]]
; Additional Information: [[Per Service Schemas]]
== comAccVendorLink ==


<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
{
{
objectType: "comAccVendorAccountsPayableLink",
objectType: "comAccVendorLink",
canDelete: false,
canDelete: false,
belongTo: {
belongTo: {
serviceTag: "ComAccLink",
serviceTag: "ComAccLink",
objectType: "comAccLink"
objectType: "comAccLinkByBusiness"
},
},
addOnDataStructure: [],
addOnDataStructure: [],
Line 22: Line 24:
"dynamo": {
"dynamo": {
"storageType": "dynamoDB",
"storageType": "dynamoDB",
"tableName": "comAccVendorAccountsPayableLink",
"tableName": "comAccVendorLink",
}
}
     },
     },
     fieldNames: {
     fieldNames: {
// probably have two dynamo tables, one identified by vendorId, one by accountId
// businessId
// vendorId
// accountlinkTag // type of link: accountsPayable|..
// accountId
     },
     },
     identifiers: [
     identifiers: [
{
{
// see above note
type: "partitionKey",
fieldNames: ["businessId","vendorId"],
},
{
fieldName: "accountlinkTag"
},
    ]
}
</syntaxhighlight>
 
== comAccDefaultVendorLink ==
 
<syntaxhighlight lang="JavaScript">
{
objectType: "comAccDefaultVendorLink",
canDelete: false,
belongTo: {
serviceTag: "ComAccLink",
objectType: "comAccLinkByBusiness"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccDefaultVendorLink",
}
}
"graph": {}
    },
    fieldNames: {
// businessId
// accountlinkTag // type of link: accountsPayable|..
// accountId
    },
    identifiers: [
{
type: "partitionKey",
fieldNames: ["businessId"],
},
{
fieldName: "accountlinkTag"
},
     ]
     ]
}
}
Line 43: Line 86:
= flowSchemas =
= flowSchemas =


== vendorCreated ==
== createSale ==


* creates a Accounting AccountsPayable account and a link in comAccVendorAccountsPayableLink
* creates a Accounting AccountsPayable account and a link in comAccVendorAccountsPayableLink
= accountlinkTag =
== accountsPayable ==
* when receive bill from vendor and before payment made
== goodsReceivedNotInvoiced ==
* clearing account used when receive goods from vendor before recieving invoice
== purchasesInTransit ==
* clearing account used when receive invoice from vendor before recieving goods


= Working documents =
= Working documents =

Revision as of 12:45, 15 April 2026

Overview

Connects each vendor to their Accounting accounts, such as accountsPayable

Repository

...

Object Schemas

Additional Information
Per Service Schemas

comAccVendorLink

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

comAccDefaultVendorLink

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

Relationships

...

flowSchemas

createSale

  • creates a Accounting AccountsPayable account and a link in comAccVendorAccountsPayableLink

accountlinkTag

accountsPayable

  • when receive bill from vendor and before payment made

goodsReceivedNotInvoiced

  • clearing account used when receive goods from vendor before recieving invoice

purchasesInTransit

  • clearing account used when receive invoice from vendor before recieving goods

Working documents

CommerceAccounting Vendor