Multi-method cost allocation engine
A flexible cost allocation engine supporting two modes: standalone allocations from GL account balances and document-linked allocations traced back to specific bills or invoices. Four allocation methods are available — fixed percentage, by headcount, by revenue, and custom formula. Every allocation enforces balanced debits and credits, prevents double-allocation of the same costs, and creates a full audit trail. Allocations can be voided with automatic reversing entries.
Identify source costs — fetch balance of source account(s) for the allocation period
Determine allocation method: fixed percentage, by headcount, by revenue, or custom formula
Calculate target splits and show preview table with source and target lines
User reviews and confirms the allocation preview
Create allocation run and submit balanced debit/credit lines
Optionally approve and post the GL journal entry immediately
Identify source transaction — find the source bill/invoice/JE and show GL lines
Check existing allocations — verify account is not already fully allocated
Select which line(s) to allocate: all expense lines or specific accounts
Determine allocation method and calculate target splits
User confirms preview including source document reference
Create allocation run with source_transaction_id for full traceability
Void an existing allocation run
System creates reversing GL entry automatically
Source account freed up for re-allocation
If any checkpoint fails, the workflow stops and reports the issue. Nothing posts to the ledger until every check passes.
Formulas, templates, regulatory rules — not hardcoded values. Forkable per firm, per client.
Designed to work out-of-the-box with the Arfiti ledger. Claude fetches your data, runs calculations, validates results, and submits entries automatically through MCP.
Or fork it. Skills, commands, validation logic, and reference data are all MIT-licensed. Swap the MCP tool calls for your own backend, or use the reference files as standalone Claude project resources.
Get the next post in your inbox.
Practitioner notes on AI-native finance. One email when something new ships. Unsubscribe any time.