Service - CommerceAccounting Vendor Payment
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