Finance folio billing
Bill a company or an event's organiser for what its guests charged to their rooms. Import guest folios from your property system, say in a rule who pays which charges, and run it to get draft invoices with the folio lines behind them.
Folio billing is part of the Billing module (finance.billing), for hotels. A company books rooms for its staff, or
an organiser books a block for an event, and agrees to pay some of what the guests charge to their rooms: the room and
breakfast, say, but not the minibar. Folio billing reads the guests' folios from your property system, routes every
charge to the company or to the guest by a rule you write, and makes one structured invoice per customer or event, with
the folio lines behind it.
Open it in Finance > Folios (/finance/folios), under Billing in the Finance menu. The page lists your billing
rules, the latest imports and the latest runs.
Rules
New rule opens the editor (/finance/folios/rule). A rule is for one of two things:
- An event: a name, the first and last day, and the event's booking code (the block or group code on its folios). Only folios with that booking code are the event's.
- A customer's stays: the company name on the folios, a booking code, or both. Only folios that match are the customer's.
Then say:
| Setting | What it does |
|---|---|
| Customer invoiced | The party (a customer) the company-paid charges are invoiced to |
| Categories the company pays | Charge categories as your export names them, like room, breakfast |
| Categories the guest pays | Like minibar, telephone, laundry. These lines are listed, not invoiced |
| Invoice the guest's lines to | Optional: a customer to invoice the guest-paid lines to as well |
| Invoice lines | One line per guest and category, per night and category, or per department and category |
| Required references | PO number, cost centre or booking code: a company-paid folio without one is an exception |
| Tax included in the amounts | The tax code the folio amounts include, or none |
| Service charge | A percentage included in some categories, shown on its own invoice line |
| Revenue account | The income account of the invoice lines (needed later to issue) |
Categories are compared without case, with spaces and punctuation turned into _: Room Charge matches room_charge.
A category can be the company's or the guest's, not both. A charge whose category is on neither list is an exception.
Beside the form, In plain words reads the rule back as you fill it in. Every save makes a new version of the rule. A run keeps the version it used, and a copy of the rule as it was.
Importing folios
Import folios (/finance/folios/import) takes the property system's export as a CSV file with one charge per row:
the folio number, the date, the category and the amount, and as many of guest, room, description, department, company,
booking code, PO number and cost centre as the export has.
- Pick the entity (the hotel) and name the export, like
Opera night audit. - Choose the file. The first time, Finance suggests how the columns map from the header names. Check the column for each field, the date format (it is never guessed when a date could be read two ways) and the currency.
- Check reads every row. When a row is wrong (a date that does not exist, an amount with too many decimals, no folio number) nothing is imported, and every problem is listed with its line in the file.
- Import. The column mapping is saved under the export's name, so the next file from the same export needs none.
The same file is imported once per entity: sending it again is refused, so no folio is counted twice. When the property system sends a corrected folio in a later file, a run uses the folio's lines from the latest file only.
References for rows without them sets a booking code, company or PO number for every row that has none, for an export that leaves them out.
A PDF folio works too. Send it to Capture; once it is read as a folio, give its document id instead of a file. Its charges take their category from their words (room, breakfast, minibar, telephone and so on); check the result in the preview, and fix any charge with no category in Documents.
At most 5 MB and 5,000 charges a file.
Running
Run (/finance/folios/run) takes a rule and a period. An event's period defaults to its dates. Preview shows,
with nothing written:
- the totals: what the folios add up to, what the company pays, what the guests pay and what could not be placed. The first always equals the other three added together, to the cent;
- the folios, one row each, with each one's company, guest and unplaced amounts;
- the invoices that would be drafted;
- the exceptions: each line the rule could not place, and why;
- the guest-paid lines.
Create draft invoices makes the drafts. They are normal sales invoices with no number yet, marked as coming from folios. Check each one in Finance > Invoices and issue it there. A run never issues anything.
A rule runs once for a period. Starting it again for the same period shows the first run and makes nothing new, so two people pressing the button at once still get one set of drafts. To bill folios that arrive later, run the next period. A charge already on an invoice from an earlier run (one that is not void) is never billed again, even when periods overlap or another rule matches it.
Why a line is not placed
| Reason | What happened |
|---|---|
| Not the rule's currency | The charge is in another currency |
| No category | The charge has no category |
| Category not in the rule | Neither list names its category |
| Missing PO number, cost centre or booking code | The rule requires it and no line of the folio has one |
| No department | The rule groups by department and the charge has none |
| Group below zero | More corrections than charges in one invoice line's group |
Each one is an exception of kind folio_unplaced in Finance > Exceptions, raised once per folio line however many
times you run. It stays off the invoice.
Tax, service charge and rounding
Folio amounts are what the guest was charged, tax and service charge included. For each invoice line the run finds the largest net amount whose tax, worked out as an invoice works it out (net × rate, rounded half up to a whole cent), keeps the line within the folio amounts. A service charge included in a category is split out of that net onto its own line, taxed the same way. Whatever rounding leaves over, a cent or two, goes on one Rounding line without tax. Every invoice's total equals the folio amounts it bills.
An invoice holds at most 200 lines. A run with more fills several drafts, in order.
The annex
Each draft from a run has a printable annex (/finance/folios/annex?invoice=…): the run's rule and period, then every
folio behind the invoice with its charges and the invoice line each went to. Print or save as PDF opens the browser's
print dialog. Send it with the invoice as its backing detail.
Who may do what
| Action | Who |
|---|---|
| See rules, runs and previews | billing.read: an AR clerk, a controller, an auditor |
| Write rules, import folios, run | billing.issue: an AR clerk or a controller |
A member scoped to some entities sees only their rules and runs. Another entity's rule answers as if it did not exist.
With Billing off, every page, tool and REST call answers 403 product_not_enabled. Every change is on the
event chain.
A Finance agent may import folios with its own rights. Creating or changing a rule and starting a run are
decisions: an agent needs a job whose authority allows billing.issue, and without one its call becomes a
recommendation for a person.
Tools and API
| Tool | REST | What it does |
|---|---|---|
finance_foliorule_list |
GET /api/v1/finance/folio-rules |
Filtered by entity_id, party_id, status |
finance_foliorule_create |
POST /api/v1/finance/folio-rules |
A rule: entity_id, name, kind, party_id, currency, company_categories and the settings above |
finance_foliorule_update |
PATCH /api/v1/finance/folio-rules/{id} |
Change a rule; a new version |
finance_folio_import |
POST /api/v1/finance/folio-imports |
entity_id with source and csv (and mapping the first time), or document_id; defaults, dry_run |
finance_foliorun_start |
POST /api/v1/finance/folio-runs |
rule_id, optional from and to: make the drafts |
finance_foliorun_get |
GET /api/v1/finance/folio-runs/{id} |
One run with its drafts and every routed line |
finance_foliorun_get |
GET /api/v1/finance/folio-rules/{rule_id}/preview |
What a run would do, with from and to; nothing written |
Amounts are minor units as decimal text (24500 is 245.00). Reading needs OAuth scope finance:read, every change
finance:write.