DODIL BLOG
DocsLog inSign up

Modules / Expenses

Expenses

Let people claim what they spent for work in a minute: photograph the receipt, add mileage or a daily allowance by the country's rules, see the company-card transactions waiting for a receipt, and send the claim to their manager. Finance checks it against the policy and the VAT rules, the books get the cost and the reclaimable VAT, and the employee is paid back with the next payment run.

People ask for it as: “expense claims”, “receipts”, “reimburse the team”, “mileage”, “per diem”, “subsistence”, “company credit cards”, “the card statement”, “travel expenses”, “Reisekosten”

Who uses it

RoleDoesSees
Anyone who spends money for workcreates claims, adds receipts, mileage and allowances, matches card transactions, submits, answers questions, consents to the AI reader (or not)only their own claims, cards and receipts
Line manager (derived from hr)approves or returns their team's claims; delegates while absentthe claims of people they manage on the submission date, and of people delegated to them
Expenses accountantchecks claims against policy and VAT rules, approves above the threshold, imports card feeds, chases unclaimed card lines, posts, reads every claimevery claim of their companies
The owner (or whoever the owner names)holds the controls (approval thresholds, whether a policy limit warns or blocks, AI step modes, delegation rules), signs the migration reconciliationeverything
The systemreads receipts (when consented), computes mileage and allowances, checks policy, derives the approval chain, posts approved claims, hands payouts to payments, takes card feeds, flags duplicates, marks lines stale, loads an Odoo migrationeverything, through its own service account

What it has to do

Reference user stories. Each has a test written into it — the given / when / then — which becomes an automated check once it is built. Expect to keep some, change some and drop some.

Things people do

  • EXP-01As an employee, I want to photograph a receipt and have its date, merchant, amount and VAT filled in for me to check, so that a claim takes a minute, not an evening.

    Given employee 3301 (UK01, cost centre SALES-N) consented to the receipt reader on 2026-10-01; ai step read_receipt in mode suggest; a hotel receipt from a Manchester hotel dated 2026-11-05, total 264.00 GBP, VAT 44.00, VAT number GB 987 6543 21 · when I add the photo to my draft claim UK01-EXP-2026-00042 · then the image is stored as a DataK3 object raw/expenses/UK01-EXP-2026-00042/2/<sha256>.jpg; the reader suggests date 2026-11-05, merchant, total 264.00, currency GBP, VAT 44.00, the VAT number and category ACCOMMODATION, each marked suggested; the line counts as ready only when I confirm or correct each field; what the model read and what I changed is kept (exp_ai_finding); with the step off, or without my consent, the fields are empty and I type them

    Anyone who spends money for work · screen: My expenses · reference: not built

  • EXP-02As an employee, I want to be asked once whether a model may read my receipts, and to change my mind, so that my receipts are read by a machine only because I agreed.

    Given employee 3301 has never been asked; the platform's sovereign models in the EU/UK region · when I open My expenses for the first time, read what is processed and where, and agree; on 2026-12-01 I withdraw · then a consent row (person_id, step read_receipt, given_at, text_version) is written; from 2026-12-01 no new image of mine is sent to the model and the fields stay empty; what was read before stays as I confirmed it; finance cannot give consent for me

    Anyone who spends money for work · screen: My expenses · reference: not built

  • EXP-03As an employee in the UK, I want mileage in my own car paid at the HMRC rates, including the change after 10,000 miles, so that I am paid the tax-free amount without working it out.

    Given mileage rates UK car: 0.45 GBP a mile up to 10,000 business miles in a tax year (6 April to 5 April), 0.25 after; employee 3301 has 9,850 approved business miles in tax year 2026-27 · when I claim 300 miles on 2026-11-04 (Leeds to Manchester and back, two client visits) · then the line is 150 miles x 0.45 = 67.50 plus 150 miles x 0.25 = 37.50, total 105.00, with the band split shown; the cumulative is read from approved lines of the same tax year (derived, never stored); a claim submitted earlier and approved later changes the band, so this line is marked stale and recomputed at approval (EXP-20); miles are NUMERIC(19,4), zero or negative refused 422

    Anyone who spends money for work · screen: My expenses · reference: not built

    Usually different per customer: rates per vehicle type and country; whether you pay above the tax-free rate (the excess is taxable)

  • EXP-04As an employee in Germany, I want my daily allowance for a business trip computed from the trip times, with meals I was given deducted, so that I am paid what the tax law allows.

    Given employee 5120 (DE01); per diem DE domestic from 2025-01-01: 28.00 EUR for 24 hours away, 14.00 for an arrival or departure day or more than 8 hours; breakfast 20%, lunch 40%, dinner 40% of 28.00 deducted when provided · when I claim a trip Berlin to Munich from 2026-11-10 07:00 to 2026-11-12 19:00 with hotel breakfast on 2026-11-11 and 2026-11-12 · then arrival day 14.00 + full day 28.00 + departure day 14.00 = 56.00 less 2 x 5.60 = 11.20 gives 44.80 EUR; the trip is one line with its days shown; overlapping trips of the same person are refused; the allowance is never below 0.00; a per diem line needs no receipt

    Anyone who spends money for work · screen: My expenses · reference: not built

    Usually different per customer: per diem by destination country (the BMF foreign rates are rows, never code); a UK company may use HMRC benchmark rates or actual cost

  • EXP-05As an employee, I want a receipt in another currency converted for me, and replaced by what the card was actually billed, so that I am paid back what it cost.

    Given employee 3301 (UK01, GBP) paid a Paris hotel 238.00 EUR on 2026-11-03 with their own card; gl spot rate EUR to GBP on 2026-11-03 0.870000; a second Paris dinner of 64.00 EUR paid with company card 4417, billed 56.12 GBP · when I add both · then the hotel line is 238.00 EUR at 0.870000 = 207.06 GBP (rounded once, half up, to GBP); the dinner line takes the card's billed 56.12 GBP once matched and keeps 64.00 EUR as the receipt amount; a rate missing in gl blocks the line with the currency and date named; amounts are never summed across currencies

    Anyone who spends money for work · screen: My expenses · reference: not built

  • EXP-06As a company-card holder, I want my card transactions waiting for receipts in one list, so that I match each one instead of finding them at month end.

    Given card 4417 (employee 3301) feed imported for 2026-11-01 to 2026-11-07: 5 transactions, one of 264.00 GBP from the Manchester hotel on 2026-11-05 and one of 18.00 GBP at a cinema on 2026-11-06 · when I attach the hotel receipt (EXP-01) and mark the cinema as personal · then the hotel transaction is matched to line 2 of my claim (the suggestion: same amount, date within 3 days, merchant similar); the cinema transaction becomes personal spend I owe back, deducted from my next reimbursement or repaid (EXP-14); a transaction can be matched to one line only, and a line to one transaction; an unmatched transaction older than card_receipt_days (14) is chased (EXP-17)

    Anyone who spends money for work · screen: My expenses · reference: not built

  • EXP-07As an employee, I want to be told while I fill in a claim when a line breaks the expense policy, so that I fix it before my manager has to send it back.

    Given policy UK01: ACCOMMODATION London 180.00 a night warn, elsewhere 140.00 a night warn; MEALS_CLIENT 75.00 a person block without attendees; ALCOHOL not reimbursable (block) · when I add a Manchester hotel at 132.00 a night (2 nights, 264.00), a client dinner of 96.00 for 3 people with the attendees named, and a bar bill of 22.00 · then the hotel passes (132.00 under 140.00); the dinner passes (32.00 a person, attendees listed); the bar bill is refused ("alcohol is not reimbursed, policy UK01 ALCOHOL"); a warn rule lets me submit with a reason that the approver sees; a block rule stops submission; each rule names its row so finance can change it without code

    Anyone who spends money for work · screen: My expenses · reference: not built

  • EXP-08As an employee, I want to submit my claim and see who has to approve it, so that I know where it is.

    Given claim UK01-EXP-2026-00042 rev 1: train 86.40 (own money, VAT zero-rated), hotel 264.00 (card 4417, VAT 44.00), client dinner 96.00 (own money, VAT 16.00 non-reclaimable entertainment), mileage 105.00; total 551.40, reimbursable 287.40; finance_approval_threshold 500.00; manager of 3301 on 2026-11-07 is 2280 (hr, derived) · when I submit on 2026-11-07 · then gates: every line ready (fields confirmed), a receipt on every line above receipt_required_above (10.00) except mileage and per diem, no block rule broken, every card transaction of the period matched or marked personal; the chain is level 1 manager 2280, level 2 finance (551.40 is above 500.00), fixed at submission; the claim moves to submitted and its lines are frozen; a submission with a gate unmet is refused with each gate named

    Anyone who spends money for work · screen: My expenses · reference: not built

  • EXP-09As a manager, I want to approve or return my team's claims with the receipts and the policy warnings in front of me, so that I approve what I can see.

    Given claim UK01-EXP-2026-00042 rev 1 at level 1 for manager 2280 (sub m2280, m@co) · when I approve it; earlier, my own claim UK01-EXP-2026-00039 had been routed: its level 1 is my manager 1904, not me · then level 1 recorded (approved_by, approved_sub, at, revision 1); the claim moves to level 2 (finance); an approver who is the claimant (same sub, or same email under a second login) is never on the chain: the level goes to the next manager up, and to finance's head where there is none; a delegate is never the claimant either

    Line manager (derived from hr) · screen: Approvals · reference: not built

  • EXP-10As a manager, I want to send a claim back with a question, so that the employee fixes it without starting again.

    Given claim UK01-EXP-2026-00051 rev 1 at level 1 · when I return it with "which client was the dinner with?"; the employee answers, edits line 3 and resubmits · then rev 1 is returned (terminal for rev 1, with my question kept); the employee edits a rev 2 copy of the lines, and resubmission starts the chain again from level 1; approvals of rev 1 never count for rev 2; nothing moves back to an earlier state

    Line manager (derived from hr) · screen: Approvals · reference: not built

  • EXP-11As the expenses accountant, I want to check a claim's VAT and policy before it posts, so that we reclaim VAT only on valid invoices and pay only what the policy allows.

    Given claim UK01-EXP-2026-00042 rev 1 at level 2; tax answers per line: train Z 0.00; hotel input S 44.00 reclaimable (a valid VAT invoice with the hotel's VAT number); dinner S 16.00 non-reclaimable (business entertainment); mileage outside scope · when I open it, see tax's content check pass for the hotel, and approve · then level 2 recorded; the claim is approved and posts (EXP-12); a receipt that fails tax's content check (no VAT number on a 300.00 receipt) has its VAT made non-reclaimable and its full amount charged to the cost, with the gate shown; I cannot approve a claim I submitted or approved at level 1 (email AND sub); a rejection needs a reason and is terminal (the claim is not paid)

    Expenses accountant · screen: Approvals · reference: not built

  • EXP-14As the expenses accountant, I want personal spend on a company card recovered, so that the company never pays for a cinema ticket.

    Given card transaction card:4417:TX-88213 of 18.00 GBP marked personal by employee 3301 on 2026-11-07; no reimbursement due for 30 days · when the next claim of 3301 pays 120.00, or, with none within 30 days, I ask the employee to repay · then the recovery is posted once (journal derived_id("card:4417:TX-88213", "personal"): debit employee_receivable 18.00, credit card_liability 18.00) and cleared either by netting from the next payout or by a receipt in payments; a recovery is never netted twice, and netting and repayment of the same transaction collide on one claim row so only one wins

    Expenses accountant · screen: Cards · reference: not built

  • EXP-15As the expenses accountant, I want company-card feeds imported per card, so that every card transaction is in the system before anyone claims it.

    Given card provider file for statement 2026-11 of account CORP-UK: cards 4417 and 5520, 46 transactions, total 6,412.75 GBP · when I import it, and import it again · then 46 card transactions keyed card:<card_id>:<provider txn ref>, each assigned to its card's holder; the repeat imports none; the file's total must equal the sum of its lines or nothing is imported; a card nobody holds is refused with the card named; the provider's monthly direct debit is matched in payments by its reconciliation rule to purpose card_liability, with no route needed between the two modules

    Expenses accountant · screen: Cards · reference: not built

  • EXP-22As the owner, I want the controls on approvals held by me, so that a manager cannot raise the threshold above which finance looks.

    Given finance_approval_threshold 500.00; policy mode per rule · when a finance user tries to lower a block to a warn on ALCOHOL; I raise the threshold to 750.00 from 2026-12-01 · then the first is refused (exp:settings:controls); mine is a dated row after today; a claim submitted on 2026-11-30 keeps 500.00

    The owner (or whoever the owner names) · screen: Settings · reference: not built

  • EXP-23As the expenses accountant, I want categories, rates and policy rules kept per company and country as dated rows, so that a new tax year's rates are entered, not programmed.

    Given mileage UK car 0.45 / 0.25 from 2011-04-06; DE per diem 28.00 / 14.00 from 2025-01-01 · when I add DE per diem rows for a destination (France, 2027-01-01) and a new category CONFERENCE (purpose training, tax category standard) · then each row is dated with valid_from after today; a claim uses the rows in force on each line's expense date; a category maps to one gl purpose and one tax category, never to an account number typed here

    Expenses accountant · screen: Settings · reference: not built

  • EXP-24As the owner moving off Odoo, I want the posted and paid claims carried and the open ones reconciled per employee, so that I can sign that nobody is owed more or less.

    Given Odoo 17 hr_expense: sheets in states post and done for 2025 and 2026, three sheets approved and not paid · when the migration loads, reconciles and I sign · then posted and paid sheets become read-only claims (report_id odoo:<db>:hr.expense.sheet:<id>); the three unpaid sheets become posted claims with their reimbursable amounts, to be paid here; the open amount per employee equals Odoo's to the penny; draft and submitted sheets are not carried (finished in Odoo, or re-entered)

    The owner (or whoever the owner names) · screen: Migration · reference: not built

  • EXP-25As an employee, I want to undo a card match I made to the wrong line, so that the claim shows what I actually spent before I submit it.

    Given card transaction card:4417:TX-88301 of 42.50 GBP matched by employee 3301 to line 2 of draft claim UK01-EXP-2026-00231 (typed 40.00) · when I unmatch it · then the transaction is imported (unmatched) again and the line's amount returns to the 40.00 I typed; the match is kept in the transaction's history with who undid it and when; once the claim is submitted the match is frozen with the lines and refused 409 {gate: claim_is_draft, fix: "ask the approver to return the claim"}; finance (exp:card_txn:resolve) may unmatch for anyone on the same gate

    Anyone who spends money for work · screen: My expenses · reference: v2 (2026-10-26): the signed process had no unmatch (erp-brick-expenses 0.2.0 AGENTS.md); not built

  • EXP-26As the expenses accountant, I want to reverse a claim posted in error, so that the ledger and the employee's balance are put right without editing what was posted.

    Given claim UK01-EXP-2026-00198 posted 2026-11-10 (journal derived_id("exp:UK01-EXP-2026-00198:r1", "approve"), 86.40 GBP reimbursable), its payout requested · when I reverse it with a reason · then a mirror journal is posted once, keyed derived_id("exp:UK01-EXP-2026-00198:r1", "reverse") (gl event reverse, as gl GL-30 lists for expenses), dated today if the period is open, else the first day of the next open period; the claim is reversed (terminal; a corrected claim is a new one); a payout not yet exported is cancelled (payments POST /payouts/{payout_ref}/cancel); one already exported or paid stands, and the reversal leaves an employee_receivable of 86.40 that is netted from the next payout or repaid in payments, as a personal card spend is (EXP-14); reversing twice posts nothing more

    Expenses accountant · screen: Approvals · reference: v2 (2026-10-26): the signed process had no reversal of a posted claim (erp-brick-expenses 0.2.0 AGENTS.md); not built

Things that happen on their own

  • EXP-12when the last level of a claim is approvedThe system posts the approved claim, so that the cost, the reclaimable VAT and what we owe are in the books on the day it was approved.

    Given claim UK01-EXP-2026-00042 rev 1 approved on 2026-11-09; categories: TRAVEL_RAIL -> purpose travel, ACCOMMODATION -> accommodation, MEALS_CLIENT -> entertainment, MILEAGE -> mileage · when the post runs, and runs again after a timeout · then gl POST /journal-entry/journals with journal_id derived_id("exp:UK01-EXP-2026-00042:r1", "approve"), source_module expenses, company UK01, journal_date 2026-11-09 (the business date of approval): debit travel 86.40, accommodation 220.00, input VAT 44.00 (purpose tax, tax_code the input code), entertainment 96.00 (VAT included in the cost), mileage 105.00, each with cost centre SALES-N; credit employee_payable 287.40 (bp_id the employee's person partner) and card_liability 264.00 (card 4417); 551.40 each side; the retry is gl's replay; a closed period waits as post_failed with gl's reason

    · reference: not built

  • EXP-16when a receipt image is addedThe system flags a receipt that looks like one already claimed, so that the same dinner is not paid twice.

    Given employee 3301 claimed a 96.00 GBP dinner on 2026-11-04 in claim 00042; employee 3308 adds a photo of the same receipt · when the image is added · then the same image digest, or a near-identical image by vector similarity above duplicate_threshold with the same date and amount, marks the line possible_duplicate naming claim 00042; the approver sees it; nothing is refused by the flag alone, and a person decides (a split bill is legitimate)

    · reference: not built

  • EXP-17daily, in the composition's worker (no server-side scheduler)The system chases card transactions with no receipt and claims waiting too long for approval, so that month end has no surprises.

    Given card transaction card:4417:TX-88301 of 42.00 imported 2026-11-02, unmatched on 2026-11-17 (card_receipt_days 14); claim 00047 waiting at level 1 for 6 business days (approval_reminder_days 5) · when the daily pass runs on 2026-11-17, and again on the same business date · then one reminder to the card holder and one to the approver, keyed (kind, ref, business_date), so the second pass sends nothing; the business date is in business_timezone

    · reference: not built

  • EXP-20when an input of a not-yet-approved line changes (a rate row, an fx rate, an earlier mileage approval, a policy row)The system marks lines stale and recomputes them before anyone approves, so that nobody approves an amount computed from yesterday's rules.

    Given claim 00046 (submitted, 200 miles) and claim 00049 (submitted, 300 miles) of employee 3301 with 9,850 approved miles; 00049 computed as 150 at 0.45 + 150 at 0.25 · when 00046 is approved first (cumulative 10,050) · then 00049's mileage line is marked stale and recomputed as 300 at 0.25 = 75.00 (was 105.00), shown to the approver as a change with its cause; an approved or posted line is never recomputed; the stale flag clears only by a recompute

    · reference: not built

Things that cross into other modules

  • EXP-13after a claim posts with something reimbursableThe employee is paid back through payments, and the claim is paid when the bank says so.

    Given claim UK01-EXP-2026-00042 posted with 287.40 reimbursable; personal card spend of 18.00 owed by 3301 (EXP-06); reimburse_with nett · when the payout is requested, twice, and later payments confirms it from the statement · then one payout of 269.40 (287.40 - 18.00) to the employee's person partner, payout_ref exp:UK01-EXP-2026-00042:r1:pay; the 18.00 recovery is its own claim on the card transaction (recover:<card_txn_id>), so the payout and the recovery never share a key; the repeat is payments' replay; the claim moves to paid only on payments' confirmation; a payout refused by payments (no bank details) leaves the claim posted with the reason

    · owned by payments · reference: not built

  • EXP-18when a line is ready, and at finance approvalTax answers each receipt's VAT and whether the receipt is a valid VAT invoice.

    Given a line with category, amount, currency, receipt date and the merchant's VAT number · when expenses calls tax · then tax answers tax_code, rate, vat, vat_reclaimable, vat_non_reclaimable and the content gates; expenses stores the answer as its copy and never applies a rate itself

    · owned by tax · reference: not built

  • EXP-19at submission (the chain), and on every read of the claimantThe claimant, their company, cost centre and manager come from hr.

    Given employee 3301 assigned to SALES-N in UK01, managed by 2280 on 2026-11-07 · when expenses derives the chain · then it reads the person's employment and manager on the submission date from hr and fixes the chain on the claim; a leaver can still submit claims for 90 days after their last day (leaver_claim_days), approved by their last manager's successor

    · owned by hr · reference: not built

  • EXP-21when an approved line is marked rebillable to a customerA cost re-billed to a customer is raised as an invoice line in ar (an extension).

    Given line 1 of claim UK01-EXP-2026-00042 (train 86.40) marked rebillable to customer 50211 at cost · when the claim posts · then expenses asks ar to raise the line for customer 50211 (source_kind expense, source_id exp:<report_id>:<line_no>), once; ar owns the invoice; the expense is not posted twice

    · owned by ar · reference: not built

How things move

expense_report

draft → submitted → approved → posted → paid → returned → rejected → cancelled → post_failed → reversed

  • none → draft by employee · when the claimant employed on the date (hr) · report_id claimed from the company's yearly series
  • draft → draft by system · when the employee's consent recorded; the step's mode suggest · suggested fields marked until confirmed (EXP-01)
  • draft → submitted by employee · when lines ready; receipts present; no block rule broken; card transactions of the period resolved; no stale line · approval chain derived from hr and fixed; lines frozen
  • submitted → submitted by manager or finance · when the approver is the level's approver or delegate and is not the claimant (email AND sub); the revision is the current one · the level recorded; on the last level the claim moves to approved
  • submitted → approved by system · when every level of the revision approved
  • submitted → returned by manager or finance · needs reason · a draft revision n+1 created with the lines copied; rev n approvals void
  • submitted → rejected by manager or finance · needs reason
  • draft → cancelled by employee
  • approved / post_failed → posted by system · when the gl period of the approval date open · one journal (EXP-12); a payout requested from a pending row (EXP-13)
  • approved → post_failed by system · gl's gate and reason kept
  • posted → paid by system · when payments confirmed the payout
  • posted / paid → reversed by finance · when not reversed already; a period open for the reversal date (today, else the first day of the next open period) · needs reason · v2 (EXP-26): a mirror journal keyed derived_id('exp:<report_id>:r<revision>', 'reverse'), gl event reverse; a payout not yet exported cancelled, else an employee_receivable netted or repaid as in EXP-14

card_txn

imported → matched → personal → recovered

  • none → imported by system · when the feed's total equals its lines; the card has a holder
  • imported → matched by employee · when the line unmatched; the same currency billed · the line's amount becomes the billed amount
  • imported → personal by employee · recovery journal posted (EXP-14)
  • matched → imported by employee or finance · when the matched line's claim is a draft (claim_is_draft) · v2 (EXP-25): the line's amount returns to what was typed; the match kept in the transaction's history
  • personal → recovered by system · when netted from a payout or repaid in payments (one claim row decides)

exp_migration_run

loaded → reconciled → signed → discarded

  • none → loaded by system · when hr, business-partner and gl migrations signed · v2 (pattern §11, seemo's decided answer 4): staging rows only (exp_migration_row, keyed by the source id); nothing written to the ledger, balances or journals
  • loaded → reconciled by system
  • reconciled → signed by owner · when every check equal or explained · v2 (decided answer 4): the staged rows written through this module's normal use cases, idempotent on the source key; the first write to the ledger; a signed run is later reversed by reversing entries, never deleted
  • loaded / reconciled → discarded by owner · needs reason · v2 (decided answer 4): the run's staging rows deleted, nothing else (no ledger row was written)

What it keeps

ThingMeaningIdentified byShared?
expense reportone claim by one person, approved as a wholereport_id = "<company_code>-EXP-<yyyy>-<nnnnn>" (claimed from the company's yearly series; migrated odoo:<db>:hr.expense.sheet:<id>)module-owned
expense lineone cost on a claim (a receipt, a mileage trip, a per diem trip)report_idrevisionline_nomodule-owned
receipt imagethe photo or PDF of a receipt, kept as evidence for the retention periodobject key raw/expenses/<report_id>/<line_no>/<sha256>.<ext>module-owned
approval stepone level of one revision's chain, and what happened at itreport_idrevisionlevelmodule-owned (append-only)
carda company card and who holds itcard_id VARCHAR (the provider's masked card reference, 4417)module-owned
card txnone transaction on a company card from the provider's feedcard_txn_id = "card:<card_id>:<provider txn ref>"module-owned
card claimthe row two operations on one card transaction race for (match, personal recovery by netting, recovery by repayment)card_txn_idoperationmodule-owned (append-only; a plain INSERT; operation is part of the key, so a match and a recovery never collide, and netting and repayment of one recovery share operation recover so only one wins)
expense categorywhat a cost is for, in the employee's words, and how it postscompany_codecategory_codevalid_fromSHARED, sole writer (gl maps the purpose to an account)
ratea mileage or per diem rate for a country, vehicle or destination, from a datekind (mileage | per_diem)countryvariant (car | motorcycle | bicycle | destination code)bandvalid_frommodule-owned
policy rulea limit or a ban on a category, warn or blockcompany_coderule_codevalid_frommodule-owned
consentan employee's yes or no to an AI step reading their receiptsperson_idstep_keygiven_atmodule-owned (append-only)
ai findingwhat the model read from a receipt and what the person did with each fieldreport_idline_nofinding_nomodule-owned
outboxa side effect waiting for a neighbour after the local committargetrefmodule-owned
settingsthe controls and defaults, datedkeyvalid_frommodule-owned

An expenses tool that keeps its own list of employees, managers or bank details is how a leaver's claim is approved by nobody and paid to an old account. The person, the manager and the bank details stay in hr; the payee is hr's person partner.

What runs on its own

StoryWhenWhat
EXP-12when a claim's last level is approvedpost the journal, write the payout outbox row
EXP-16when a receipt image is addeddigest and embedding, duplicate search
EXP-17daily in the composition's worker (no server-side scheduler)card receipt and approval reminders
EXP-20when a rate, policy, fx rate or an earlier mileage approval changesmark affected not-yet-approved lines stale

Questions that shape your version

Read these out and let the customer correct one — people rarely recall a policy on demand and can always react to one. Standard is a named authority you can look up and hold us to. Commonly seen is exactly that: arrangements we have met, with no survey behind them. A customer doing none of them is not doing it wrong.

  1. How do you pay people back, with the supplier payment run, with payroll, or by hand?
    uk company
    payments run weekly, a bank transfer to the employee
    german company
    allowances often through payroll, receipts by transfer
    warning
    a reimbursement above the tax-free rate is taxable pay and belongs in payroll
  2. Which mileage and daily allowance rates do you pay, and do you pay more than the tax-free amount?

    Standard UK ITEPA 2003 ss. 229-236 (AMAP 45p / 25p); HMRC EIM05231 (benchmark scale rates); DE s. 9 (4a) EStG (28.00 / 14.00 EUR) and s. 9 (1) no. 4a EStG (0.30 EUR/km)

  3. Above what amount should finance look at a claim after the manager?
    small company
    every claim to the owner
    mid market
    manager, then finance above 500.00
  4. What does your expense policy say about hotels, meals with clients and alcohol, and is a breach a warning or a stop?
  5. May the AI read receipts, and should employees be asked one by one?

    Standard GDPR arts. 6 and 13

  6. Do you re-bill travel costs to customers, and at cost or with a markup?
  7. How long must receipts be kept?

    Standard UK: 6 years (HMRC record keeping, VAT Notice 700/21); DE: s. 147 AO

What you can change yourself

These are settings, not code: someone in your team changes them on a screen, without a developer and without a release.

Where the platform limits what we can promise

No read-your-writes inside an open transaction. an approval commits the level, then a second transaction completes the chain and posts
A plain INSERT of a committed key is rejected (23505). report numbers, approval steps and card claims are plain INSERTs; the loser re-reads

For builders

Code

Public repositories, anonymous clone, one release tag each. Read README.md and AGENTS.md first.

Known gaps in the reference

© 2026 DODILHomeDocsConsole