Module Reference

Expenses

What staff spend for the business: the bill, a manager's decision, and paying it back.

Expenses records what staff spend for the business. A person photographs the bill from the Expenses tab of their staff page or at the register, the bill is read into the form, and a manager at that Location approves the amount, or less, or rejects it. Each expense says what paid for it: the person's own money (paid back later), the Location's petty cash float, or the register's till as a Paid out. Managers pay people back, keep each float's top-ups and counts, and download a monthly report. People and their Locations come from Staff and Branches. With POS on, a Paid out at the register becomes an expense, and with Accounting on, every approval, pay-back, top-up and count is posted to the books.

What it handles

  • Submitting and deciding. A person sends an expense with its bill, and only a manager of that Location sees and decides it. A manager can't decide their own expense, and a decision made from a screen another change has overtaken is refused, so nobody approves a bill or amount they didn't see. Tested: "Expenses: staff submit and managers decide" Tested: "Expenses: managers correct and enter expenses"
  • Bills that add up. Each line, the subtotal, discount, service charge, VAT and total are read from the bill and checked. A bill that doesn't add up can still be sent, and the approver sees what doesn't match. Tested: "Expenses: bills"
  • Daily limits. A category can have a daily limit per person. The approver sees what fits and what is over; approving more is allowed and recorded. "Approve what fits" is refused if the limit or the day's approvals changed after the manager looked. Tested: "Expenses: daily limits"
  • Paying own money back. Approved own-money expenses wait for a pay-back, one person at one Location per payment, by bank transfer (with its slip) or in cash. An expense is paid back once, and the slip opens again from each expense it paid. With Payroll on, a waiting expense can be paid back with the month's pay instead. Tested: "Expenses: paying own money back" Tested: "Expenses: a pay-back slip stays in its Location"
  • Petty cash. One float per Location, held by one person. Top-ups, spends and counts keep one balance; a retried top-up or count is recorded once, and a retry with other figures is refused. A float is retired only when it is empty and none of its spends is still open. Tested: "Expenses: petty cash floats" Tested: "Expenses: float retries" Tested: "Expenses: one balance per float"
  • Paid outs at the register. A Paid out with its category becomes a till expense, and one the cashier left without details waits for a manager to add them. Tested: "Expenses × POS: Paid out at the register" Tested: "Expenses × POS: the Paid out dialog"
  • Long lists. A person's pending expenses stay on their staff page however many newer ones were decided, and older ones are a page away. Tested: "Expenses: long lists stay reachable"
  • The monthly report. Approved spending by Location, category and what paid for it, as a CSV. Tested: "Expenses: the monthly report"

What you build on top

  • Categories and limits. The categories, their names and their daily limits are set in Settings → Expenses.
  • The books. With Accounting on, each category maps to an expense account, and the accountant can change the mapping. A category the business adds books as "Other" until the accountant gives it an account of its own in Accounting's settings.
  • Your words. Rename "Expenses" for the business with an override.
  • In code. Your coding agent imports Expenses only through its public API: index.ts and server/index.ts in apps/web/src/modules/expenses/. See Build on a Module.

Limits

  • Bills and slips need the optional media file storage connected to the app.
  • Expenses records what was paid back; it doesn't send the money.
  • A rejected till spend paid back is kept with the cash on hand, not put back in the register drawer.

Facts

  • Kind: feature Module, can be switched on and off
  • Needs: Audit log, Branches, Formatting, i18n, Identity, Infra, Staff, Standard UI
  • Needed by: Nothing
  • Adds to these when they're on: POS
  • Added to by: Accounting, Payroll
  • Not built by default for these business types: Website, Spa or salon, Restaurant or café, Retail, Tour operator, Gym or studio, Online classes, Car hire, Online store
  • Offered as an add-on for these business types: none

Pages

WherePath
Admin/admin/expenses

Permissions

Admin holds every key. The other roles listed hold it when the app first gets the Module; after that, roles are yours to change under Settings → Roles & Permissions.

PermissionWhat it allowsOrganization roles that start with it
expenses:readSee staff expenses, petty cash floats, what staff owe back and the monthly expense report.Admin, Manager, Viewer
expenses:approveApprove and reject staff expenses, pay own money back, enter an expense for someone, and top up and count petty cash floats.Admin, Manager
expenses:settingsSet up expense categories and their daily limits.Admin

Data

  • Tables: expense_category, expense_float, expense_reimbursement, expense, expense_file, expense_line, expense_float_movement
  • File storage media: optional, shared across the organization

Slots

Places other Modules and your app code can add to. See Extend a Module.

  • expenses.approval-section

Tested workflows

  • Expenses: staff submit and managers decide
  • Expenses: daily limits
  • Expenses: paying own money back
  • Expenses: the monthly report
  • Expenses: petty cash floats
  • Expenses: bills
  • Expenses: managers correct and enter expenses
  • Expenses: float retries
  • Expenses: one balance per float
  • Expenses: long lists stay reachable
  • Expenses: a pay-back slip stays in its Location
  • Expenses × POS: Paid out at the register (with POS on)
  • Expenses × POS: the Paid out dialog (with POS on)
  • Expenses × POS: the register's Expenses screen (with POS on)