brc_update_accrual
Updates an existing parent accrual after retrieving current data and obtaining user confirmation. Modify account code, dates, reference, or total.
Instructions
Updates an existing parent Accrual by id. Use brc_get_accrual first to retrieve the current accrual and timestamp. Child accruals are not exposed by the public API. Do not call with confirmWrite=true until the user has reviewed the draft and explicitly confirmed the update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Parent accrual id. | |
| total | Yes | Accrual total amount. | |
| acCode | Yes | Nominal account code, for example 4000. | |
| procDate | Yes | Processing date, for example 2024-03-15T00:00:00. | |
| entryDate | Yes | Entry date, for example 2024-03-01T00:00:00. | |
| reference | Yes | Accrual reference, for example ACC0001. | |
| timestamp | Yes | Base64 timestamp returned by the accrual, for example K94UQIbL3gg=. | |
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| firstDetail | No | First detail text. | |
| confirmWrite | No | Must be true only after the user explicitly confirms updating this accrual. | |
| secondDetail | No | Second detail text. |