Skip to content
Docs menu

Finance expenses

Snap a receipt on your phone, check it against the spending policy, put it on a report, and send it through approvals to a balanced journal.

View .md

Expenses is the Finance module (finance.expenses) where members file what they spent for the company and get it paid back. It lives in Finance > Expenses > My expenses (/finance/expenses), built for a phone first: take a photo of the receipt, check what Capture read from it, put it on a report and submit. An approver sees the report with every warning on it, and an approved report becomes a balanced journal.

The pages: My expenses (/finance/expenses, one expense at ?id=…), a report at /finance/expenses/report?id=…, To approve (/finance/expenses/approvals), Advances (/finance/expenses/advances, see expense advances) and Categories (/finance/expenses/categories). Every claim also gets risk checks at submission.

Who can file and see expenses

Anyone who holds the requester Finance role on an entity can file expenses on it, including a member with no other Finance role: the grant alone opens Finance for them. What each person sees is enforced in the database, not only in the pages:

  • you see your own expenses and reports, and nobody else's;
  • a controller or auditor sees every member's on the entities they hold;
  • an approver sees a report, and its lines, once it is sent to them.

Only the member who filed an expense or report can change, submit or withdraw it. You never approve your own report; the approvals engine refuses it. Something you cannot see answers exactly as an unknown id.

Filing an expense

The quickest way, from any Finance page:

  1. Press New, then Expense (on a phone, the round New button at the bottom right). The filing screen opens (/finance/expenses?new=1). If your only Finance work is expenses, File an expense on the Finance home does the same.
  2. Press Snap a receipt to take a photo, or Choose a file for a photo or PDF you already have. No receipt? Press Add expense and type it in.
  3. The expense opens. While Petawork reads the receipt the page updates by itself. Check what it read.
  4. Press Submit for approval. Petawork fills any empty field from the receipt, takes the suggested category if you did not pick one, puts the expense on a report of its own and sends that report. If a check stops it, the report opens with what to fix.

To claim several expenses together, leave them as drafts and put them on one report (below).

Snap a receipt opens the phone's camera (or a file picker on a computer). The photo goes into Finance documents through the same uploader, becomes a draft expense, and is read by Finance extraction. When the reading is done, the merchant, date, currency, amount and tax fill any field you left empty, and the expense notes which ones came from the receipt. Fill from receipt does it again later. You can also forward a receipt by email (Capture by email) and link it, or Add expense and type it in.

You don't pick an entity to snap a receipt. The draft goes on your default entity if you set one, else the only entity you may file on, else the one your last expense went to, else the oldest; change it on the draft before you submit. If the organisation has no entity yet and you are an owner or Finance admin, your first receipt creates one: named after the organisation, in the country of your phone's time zone, with that country's currency. Fix its details in Settings → Entities. Anyone else is asked to have an owner or Finance admin add the company first. Over MCP and the API, finance_expense_create takes an optional timezone for this.

An expense has a merchant, the spend date, the amount and its currency, tax, a category, attendees (for meals), a business purpose, and optionally a trip or a distance driven. A category you leave empty gets a suggestion: the one you used most at that merchant, else the one you use most.

Currencies. An amount in another currency is converted into the entity's own currency at the stored exchange rate for the spend date (the latest rate on or before it). The expense keeps both amounts, the rate and the rate's date. When no rate exists yet, the expense waits; it cannot be submitted until one does. A rate is never guessed, and money is never a float.

Lost receipt. If the receipt is gone, write what happened (10 to 500 characters) in Receipt lost. The declaration is recorded and raised as a missing_receipt item in the exceptions queue, and the receipt checks treat the line as covered.

The receipt itself shows as a thumbnail; a tap opens it full size.

Reports and the policy check

A report gathers your draft expenses on one entity and is numbered EXP-000001 per entity. Its total is in the entity's currency. While it is a draft, the report page shows its checks as they stand now, line by line, so you can fix them before you submit.

At Submit, every line needs an amount, a date, a category and a rate. Then two sets of rules check it:

  • the spending policy in force (a meal cap, a per diem, a category limit, a budget). A rule set to warn lets the report through, and the approver sees the warning on that line;
  • each category's own checks, which always block: a receipt above an amount, a cap per attendee, attendees required, a purpose required.

A block holds the report as a draft. Nothing is sent, the reasons are stored on the lines, and the answer names them. Fix the lines and submit again. Both outcomes are recorded on the event chain.

Example: Meals has a cap of 60.00 a head, and the policy warns on any meal above 100.00. A 150.00 lunch for two blocks (75.00 a head). A 110.00 lunch for two goes through, with the warning shown to the approver.

Approval and the journal

A submitted report goes through Finance approvals as the document type expense_report. With no approval policy for that type, any controller on the entity can approve. The approver can approve, reject, or comment to ask about a line. A report with a warning carries the over_policy flag, which an approval policy can route on.

  • Approved: the lines are approved, one journal is proposed in Finance journals (each line debits its account, or its category's, and the total credits the entity's staff-claims account; recoverable tax goes to its tax account), and finance.expense_report.approved is sent to the organisation's webhooks. The entity's expense_reimburse_account_id setting names the staff-claims account. If an account is missing, the approval still stands and a journal_blocked exception says what to fix.
  • Rejected: the report and its lines go back to you to change and submit again.
  • Withdraw takes a report back while it waits; it is a draft again.

Reimbursement runs (scheduled, paid) come with payments.

Categories

Finance > Expenses > Categories lists the organisation's categories. A controller adds and changes them: a code (meals), a name, the currency of its amounts, its expense account and default tax code, the receipt threshold, the cap per attendee, and whether attendees or a purpose are required. Soft limits that warn belong in the spending policy.

Tools and API

Tool Finance action REST
finance_expense_create, finance_expense_update, finance_expense_delete expenses.submit POST /api/v1/finance/expenses, PATCH and DELETE /api/v1/finance/expenses/{id}
finance_expense_get, finance_expense_list expenses.read GET /api/v1/finance/expenses[/{id}]
finance_expensereport_create, finance_expensereport_submit, finance_expensereport_withdraw expenses.submit POST /api/v1/finance/expense-reports[/{id}/submit|withdraw]
finance_expensereport_get, finance_expensereport_list expenses.read GET /api/v1/finance/expense-reports[/{id}]
finance_category_list expenses.read GET /api/v1/finance/expense-categories
finance_category_update reference.write (finance:admin) PUT /api/v1/finance/expense-categories

When Expenses is off for the organisation, every tool answers 403 product_not_enabled. Every change is recorded on the audit trail. An expense is a workspace reference (fin_expense), so it can be mentioned and linked from notes and issues; see Finance references.