Skip to main content

UPDATE_LEDGER

Updates a balance ledger with current transaction details.

Example Usage​

UPDATE_LEDGER(item.Accounts_ID, item.Debit, Reference, item.Description)
UPDATE_LEDGER(item.Accounts_ID, -item.Credit, Reference, item.Description)

Overview​

Function signature
UPDATE_LEDGER(resourceid, amount, name, description)

Category
Database

Return data type
bool

Arguments​

NameDataTypeList Options                          Description
resourceidintThe unique ID of a resource in the Ledger's Resource table
amountfloatThe amount to add to the ledger balance
namestringA name for the ledger entry, usually from the transaction header data or a related resource
descriptionstringA description for the ledger entry, usually from the transaction details or items