Finance expense advances
Give a member money before they spend it, track how much is used and how old it is, take approved reports out of it first, and close it only when it is fully accounted for.
An advance is money a member gets before they spend it, for a trip or a purchase. It lives in
Finance > Expenses > Advances (/finance/expenses/advances, with the views ?view=request, disburse and
reconcile). Petawork records the advance and keeps its books; no money moves here.
The life of an advance
- Request. A member asks for an amount and says what it is for; a manager can ask on behalf of a member whose
manager they are in the member's Finance profile. It is numbered
ADV-000001per entity and is in the entity's currency. It starts as a draft. - Approval. The person who asked sends it. It goes through Finance approvals as the document type
advance; with no approval policy for it, any controller on the entity approves. Nobody approves their own. - Disburse. Someone who holds
payments.releaseon the entity records it as paid, with the reference of the transfer or handover and the date. Never the member it is for, and only once it is approved. The journal debits the advance account and credits cash, proposed once. - Spend. The member charges their own expenses to it (
finance_advance_spend). The expense skips the report queue and is approved at once, but it gets every check: the spending policy, the category's rules and the risk checks. A block refuses it. The journal debits the expense and credits the advance account. - Settle. When an expense report is approved, it is taken out of the member's open advances first, oldest first, up to what each has left. What no advance covers stays a reimbursement to the member. One settlement per advance and report, with a journal that moves the amount from "owed to the claimant" to the advance.
- Refund. Money the member gives back is recorded with its date, amount and proof (a Finance document); the journal debits cash and credits the advance account.
- Close. Only at 100%.
Utilisation: never overspent, never closed short
Used is the expenses charged to it, plus reports settled against it, plus refunds. Utilisation is used over the
advance, shown as a percentage (the tools give whole basis points: 10000 is 100%).
- An expense that would take it past 100% is refused. File the rest as a reimbursement on a report, or move the
expense with
finance_expense_convert. - Close is refused below 100%, and says how much is still to be spent, settled or returned.
- A refund larger than what is left is refused.
Moving an expense between an advance and a reimbursement
finance_expense_convert with to: advance charges a draft expense to a paid advance; to: reimbursement takes it off
its advance and makes it a draft again, ready for a report. Its journal is voided while it has not been exported (after
that, reverse it in Finance journals). Both are recorded on the event chain.
Ageing
A paid advance has an age in days since the payout. Reconcile shows what is still open by age (0-30, 31-60, 61-90,
90+ days) per currency, and finance_advance_list with ageing: true returns the same, so a controller can chase the
old ones. Below it, a per-person daily list shows what was spent from advances.
Journal accounts
Set these on the entity (finance_entity_update, settings):
| Setting | Account |
|---|---|
expense_advance_account_id |
the asset account that holds advances paid and not yet accounted for |
expense_advance_cash_account_id |
the cash or bank account an advance is paid from and a refund returns to |
expense_reimburse_account_id |
the staff-claims account an approved report credits (as for expenses) |
When one is missing the step still happens and a journal_blocked item in the exceptions queue says
what to set. Each journal is proposed once under its own source key (advance_issue, advance_spend,
advance_settlement, advance_refund) and always balances.
Who sees what
Visibility is enforced in the database. A member sees their own advances and those asked for them; a controller or auditor sees every member's on their entities; an approver sees one once it is routed to them. An employee with only a requester grant sees only their own, in every list, read and tool.
Tools and API
| Tool | Finance action | REST |
|---|---|---|
finance_advance_create |
expenses.submit |
POST /api/v1/finance/advances |
finance_advance_get, finance_advance_list |
expenses.read |
GET /api/v1/finance/advances[/{id}] |
finance_advance_submit |
expenses.submit |
POST /api/v1/finance/advances/{id}/submit |
finance_advance_disburse |
payments.release |
POST /api/v1/finance/advances/{id}/disburse |
finance_advance_spend |
expenses.submit |
POST /api/v1/finance/advances/{id}/spend |
finance_advance_refund |
expenses.submit |
POST /api/v1/finance/advances/{id}/refunds |
finance_advance_close |
expenses.submit |
POST /api/v1/finance/advances/{id}/close |
finance_expense_convert |
expenses.submit |
POST /api/v1/finance/expense-conversions |
When Expenses is off for the organisation, every tool answers 403 product_not_enabled. Every change is recorded on the
audit trail.