S63 — Room charge (pp_rmc): a hotel's restaurant charging a meal to a guest's room
A hotel's restaurant or bar puts a meal on the guest's room. The server types the room and surname on the check, a wrong room is stopped at Pay, and the charge reaches the guest's folio within about a minute. A night auditor reads one list of what was posted, what is waiting and what was refused.
The recipe: Room charge: a hotel's restaurant or bar charging a meal to a guest's room
In the App library: Room charge
Industries: Hospitality
When to use it: any restaurant, bar or room service in a hotel whose hotel system can find a guest and take a charge. It also shows a check that fills a sale detail, and a worker that posts once per sale with no state of its own.
Start from it
ivn new acme_rmc --from s63
What to change
- The hotel system: copy
service/hotel_mews.py, add one line toADAPTERSinservice/hotel.py, and add its name to the Hotel system list inmanifest.json. - The rules:
service/rooms.py(what the check answers, what one sale owes the folio). - The post:
service/worker.py. - The app's id:
IVN_LIBRARY_APPinapp.json.
More: the recipe.
The customer sets: the Room Charge mode and its clearing account first (the restaurant docs show how), then one row per store on PP RMC Settings: hotel system, connection, charge code, tip code.
The app's role needs: nothing from the retailer's administrator. The install makes PP RMC Integration and the app's own user, and gives the role read on POS Invoice, which the feed follows, and read on Journal Entry (role_rights), where the till books a tip rung on the Room Charge leg. Give the night auditor the role PP RMC Auditor. Only the System Manager changes the hotel system's settings, unless the retailer gives that right to someone else.
Who carries the hosting plan's charge: the app is free to install. Its one-minute schedule needs a hosting plan. CitiXsys carries that plan's charge for the listed app; you carry it for your own copy.
Run it
Needs POS build 2.1.0.696 or later for the three counts on the Room charges workspace.
ivn check
ivn try
To run the whole flow with no network, start the stand-in hotel system, set HOTEL_SIM_URL to its address for the service, and pick Simulator on the store's row. Its guests are 412 Smith, 6A Khan and, on the No Post list, 518 Jones.
python3 standin/hotel_api.py
HOTEL_SIM_URL=http://127.0.0.1:8161 python3 service/app.py
Try it at the till
- Open Sale details, type 412 and Smith, and press Checkout: the Folio is filled.
- Type 412 and Brown instead: the Room Charge tile is dimmed, with the reason.
- Take it on Room Charge; within a minute it reads Posted on the Room charges report (search for Room charges).
- Close the till day when you are done.
Versions
0.1.4
- The Room charges report has no Totals row: it added up only the rows Desk had loaded (20 on builds before 2.1.0.714, up to 2500 after). For the day's clearing entry, filter Status Posted, then Group By Posted on with Sum of Clearing: the database adds every row. The workspace says the same.
- Desk shows plain names (Room charges, Room charge, Posted, Waiting, Refused, Night auditor) through the manifest's
translationsblock: the workspace, its report, its three counts and each charge. The stored names are unchanged: an installed site keeps its records.
0.1.3
- A tip the server rings with the till's tip chip on a Room Charge leg reaches the guest's folio once. The app posts that leg's own tip, read from the till's tip journal for the leg, else the Tip sale detail, never both. On a split, a card payer's tip stays on the card. Each charge's new Clearing figure is what it put on the clearing account (the charge plus a chip tip); the night auditor's day entry is that column summed for the day (Group By Posted on, Sum of Clearing), and a cancel or a refused return of a chip-tipped sale says the tip stays booked. The app's role gains read on Journal Entry: the update asks the manager's consent again, naming Rights for its role … on Journal Entry: read. Until a site takes the update, its sales post the Tip detail as 0.1.2 did. Needs POS build
2.1.0.697or later for the tip chip on Room Charge; on an earlier build the Tip detail works as before.
0.1.2
- The three counts, Posted, Waiting and Refused, sit on the Room charges workspace itself, so the night auditor reads them on one page. The Charges a day chart is gone; an update leaves the old dashboard listed until the app is uninstalled. Needs POS build
2.1.0.696or later: on an earlier site the page shows no counts.
0.1.1
- A charge reads the day it reached the folio (Posted on), so a charge that waited overnight reaches the next clearing entry. A cancel and a return of a refused sale say what the clearing account needs.
0.1.0
- First version in the kit: the check at Pay, the post to the folio, the auditor's workspace, the Mews adapter and a stand-in hotel system.
Needs this serves
- Put a meal or a drink on the guest's room at the hotel, with Cloudbeds as our hotel system — Ready, with limits (4)
- Put a meal or a drink on the guest's room at the hotel, with Mews as our hotel system — Ready, with limits (6)
- Put a meal or a drink on the guest's room at the hotel, with OPERA Cloud as our hotel system — Ready, with limits (4)