Change an expense account
update_expense_accountChanges an expense account, by its id from list_expense_accounts: its name, code, IRD return line, or whether it is active (an inactive account is not offered for new expenses; its expenses stay). The accounts every organisation starts with keep their name and code; their IRD line and active switch can change. Give only what changes: every parameter left out keeps the value the record has now. Read the record first, and confirm the change with the person before making it. Only for an organisation where this connection may add and change records (list_organisations says which).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Its accounting code. | |
| name | No | What the account is called. | |
| clear | No | Optional fields to empty, by parameter name, any of: code, ird_line. | |
| active | No | false to stop offering it for new expenses, true to offer it again. | |
| ird_line | No | The key of the IRD return line it feeds, from list_choices irdExpenseLines. | |
| organisation_id | No | The id of the organisation to use, from list_organisations. Leave it out when the connection covers only one organisation; it is required when it covers more than one. | |
| expense_account_id | Yes | The expense account's id, from list_expense_accounts. |