Service - CommerceAccounting Vendor Payment: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
Created page with "= Overview = Handle payments to vendors. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas <syntaxhighlight lang="JavaScript"> { objectType: "comAccVendorPaymentLink", canDelete: false, belongTo: { serviceTag: "ComAccLink", objectType: "comAccLink" }, addOnDataStructure: [], storageResources: { "dynamo": { "storageType": "dynamoDB", "tableName": "comAccVendorPaymentLink", } }, fieldNames: { // proba..."
 
No edit summary
 
Line 9: Line 9:
= Object Schemas =
= Object Schemas =
; Additional Information: [[Per Service Schemas]]
; Additional Information: [[Per Service Schemas]]
== comAccVendorPayment ==


<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
{
{
objectType: "comAccVendorPaymentLink",
objectType: "comAccVendorPayment",
    generatedBy: "systemGenerated",
canDelete: false,
canDelete: false,
belongTo: {
    addOnDataStructure: [],
serviceTag: "ComAccLink",
objectType: "comAccLink"
},
addOnDataStructure: [],
storageResources: {
storageResources: {
"dynamo": {
"dynamo": {
"storageType": "dynamoDB",
"storageType": "dynamoDB",
"tableName": "comAccVendorPaymentLink",
"tableName": "comAccVendorPayment",
}
}
     },
     },
     fieldNames: {
     fieldNames: {
// probably have two dynamo tables, one identified by purchaseId, one by journalId
// businessId,
// organizationId,
// vendorPaymentId,
 
// record lock eg: prefix: "updateVendorPayment"
// updateVendorPayment_status: {requiredOnCreate: true}, // open|lock,
// updateVendorPayment_uniqueRequestId: {requiredOnCreate: true},
// updateVendorPayment_timestamp: {requiredOnCreate: true},
 
journalId: {
type: "string",
optionalOnCreate: true,
canUpdate: true,
storageResourceTags: ["dynamo"],
},
     },
     },
     identifiers: [
     identifiers: [
{
{
// see above note
type: "partitionKey",
}
fieldNames: ["businessId", "organizationId"],
name: "comAccLinkId",
},
{
type: "sortKey",
fieldName: "vendorPaymentId"
},
     ]
     ]
}
}

Latest revision as of 09:59, 8 August 2026

Overview

Handle payments to vendors.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

comAccVendorPayment

{
	objectType: "comAccVendorPayment",
    generatedBy: "systemGenerated",
	canDelete: false,
    addOnDataStructure: [],
	storageResources: {
		"dynamo": {
			"storageType": "dynamoDB",
			"tableName": "comAccVendorPayment",
		}
    },
    fieldNames: {
		// businessId,
		// organizationId,
		// vendorPaymentId,

		// record lock eg: prefix: "updateVendorPayment"
		// updateVendorPayment_status: {requiredOnCreate: true}, // open|lock, 
		// updateVendorPayment_uniqueRequestId: {requiredOnCreate: true},
		// updateVendorPayment_timestamp: {requiredOnCreate: true},

		journalId: {
			type: "string",
			optionalOnCreate: true,
			canUpdate: true,
			storageResourceTags: ["dynamo"],
		},
    },
    identifiers: [
		{
			type: "partitionKey",
			fieldNames: ["businessId", "organizationId"],
			name: "comAccLinkId",
		},
		{
			type: "sortKey",
			fieldName: "vendorPaymentId"
		},
    ]
}
  • maintains a link between vendorPaymentId and journalIds, so can adjust if changes made to payment

Relationships

...

flowSchemas

vendorPaymentCreated

  • when creating a vendor payment add journal entries

vendorPaymentChange

  • make adjustment to journal entries
  • need to check for locked records

Working documents

CommerceAccounting Vendor Payment