Back to apps Catalog and stock

Menus and combos

Set menus and combos at a closed price, with courses, supplements and the right VAT.

Included in every plan
Turn it on from your Hub

Apps are turned on from the Apps page of your Hub. Create your free account to get one.

What it is for and who it is for

Menus and combos sells the menu of the day, the kids' menu or the sandwich with a drink to take away at a closed price. Each menu has its courses (Starter, Main, Drink…) and each course, the choices among your products, with a supplement if one costs more. The till charges it with the right VAT and the kitchen gets each dish at its station.

In detail

Menus and combos keeps the composite items that are sold at a closed price: the menu of the day ("starter + main + dessert + drink for €13.50"), the kids' menu or the "sandwich + drink" to take away. Each menu has courses (Starter, Main, Drink…), each one with how many picks it asks for at least and at most, and each course offers choices: real products of Inventory's catalogue, with a supplement if substituting costs more (or less).

Who uses it:

  • The owner, the administrator and the manager set up the menus: price, how it is sold, courses, choices, supplements, order and what is sold out today.
  • The employee looks them up and, at the till, sells them (the till's sheet belongs to Sales).
  • The assistant, by voice or by text and with the session of whoever speaks: "create the menu of the day at 13.50 to eat in", "add a Starters course to the menu of the day", "put the lentils in Starters", "the hake has a 2-euro supplement", "no flan today".

This module keeps the menu and says what it costs and how it is billed; Sales offers it at the till and charges it, Inventory lowers the stock of each dish and Kitchen receives each dish at its station. It is not a discount nor a variant, nor the extras of a dish (that is Modifiers).

Reference adopted

What the market does is adopted:

  • Square — combos: the combo is an item of the catalogue, with "required choices" per group and a charge per option; a sold-out item is not offered.
  • Lightspeed K-Series — combos: groups with how many items have to be picked, at a fixed price; several items are added at once.
  • Odoo — combos: extra price per option and the closed price shared out in one line per component, in proportion to its catalogue price (forum: how it calculates the split).
  • Shopify Bundles, WooCommerce Product Bundles, NetSuite (kit), Holded (pack): the stock is moved by the components, never by the menu.
  • Toast and Clover do it as a discount, and that is why they are not followed: a discount is not sent to the kitchen, is not broken down and does not move stock.
  • Spanish VAT Act: art. 91.Uno.2.2º (the menu served on the premises is a single restaurant service at 10 %, the drink included, also the alcoholic one) and art. 79.Dos (a pack of goods at a single price shares out the base in proportion to the market value of each good, which HMRC specifies as the individual selling price: VATVAL03800).
  • Confirm before deleting (Square, Odoo, Shopify): a menu, a course or a choice is removed after a question.

Before you start

  • Menus needs Inventory (its choices are products of the catalogue) and Taxes (the VAT category of a menu "eaten in"). Turning Menus on turns both on.
  • Only a product that is sold and charged by units can be a choice (a menu carries "a portion", not "a kilo" nor "the price of 100"); the search boxes only offer those. A product deactivated or deleted in Inventory cannot be added.
  • The closed price and the supplements go in the business's currency, its country's, the one Settings → Business shows (euros in Spain, złoty in Poland), with its decimals (the yen has none), written with a comma or a point. The examples in this document are of a business in Spain, in euros.

Initial setup, step by step:

  1. Open Menus and tap + («Create a menu at a closed price»): name, closed price, how it is sold and, if it is "eaten in", the VAT category.
  2. Tap the menu to open its builder and add its courses with the minimum and the maximum of each one («Set up the courses of a menu»).
  3. In each course, add the choices, with their supplement if there is one («Choose the products of each course and their supplement»).
  4. Look at the notice at the top of the builder: it says whether the menu is already on the till or what it lacks.

Screens

Here are your menus, with their photo, their closed price, whether they are eaten in or sold to take away and whether they are on sale. With + you create one; on its row, "Edit details" changes it and "Withdraw" takes it off sale with its courses. Tap a menu to open its builder: there you add its courses, in each course the choices with their supplement, and you mark what is sold out today. At the top of the builder, a notice says whether the menu is already on the till or what it lacks.

Detail

Menu Menus. Table of menus with the search box "Search a menu…" (it searches by name and by kitchen name), table or cards view and columns: "Photo" (the thumbnail, or the initials over its colour), Name (sorts and filters), "Closed price" (in the business's currency; sorts), "How it is sold" ("Eat in" or "Take away"; sorts and filters), "On sale" (Yes or No; sorts and filters) and Order (sorts). Pages of 50, by order and name. With the right to manage there is a + button and, per row, "Edit details" and "Withdraw"; without it, only the list is seen. Tapping a row opens the builder.

The create and edit form (title "New menu" or "Menu · {name}") has: Name, "Kitchen name" ("Leave it empty and the kitchen ticket uses the commercial name."), "Closed price ()" (the business's: "Closed price (PLN)" in Poland; "What the customer pays for the whole menu, whatever they pick."), "How is it sold?" ("Eaten in (hospitality service)" or "Sold as a product / to take away", with the explanation of both always in sight and the chosen one highlighted), "VAT category" (only if it is "eaten in"), "Order on the menu list" and the "On sale" checkbox (ticked to begin with), with "Save" and "Cancel".

It opens when a menu is tapped (/combo/menus/<id>). The back arrow of the top bar goes back to Menus. At the top of the page, the name and the price of the menu (in the business's currency), and a notice with what that menu will do on the ticket: "This menu is billed as a single service: one line at its VAT category, whatever the components are taxed at." or "This menu is billed as goods: its price will be split across the components you add, one line each.". Below, if the menu is not on the till yet, another notice, "Not on the till yet", says why, one reason per line.

Then, the "Courses" section ("A course is a step of THIS menu — Starter, Main, Dessert, Drink. Its order is the order it is asked for.") and a card per course, in order: name, its rule ("Compulsory · pick 1 · up to 1 · no repeats") and, with the right to manage, the drag handle, "Move up", "Move down", "Edit details" and "Withdraw". Inside, "Choices": a row per product with its supplement with its sign ("+€2.00" in Spain, "+zł 2.00" in Poland), a "Sold out" mark if it is not available today, "Sold out in Inventory" if its product is sold out for the whole business and, if the product can no longer be sold, "Deactivated in Inventory", "No longer in the catalogue", "Not sold by units in Inventory" or, in a menu "to take away", "No VAT category to take away"; per row, the handle, move up, move down, "Sold out / Available", edit and remove. Below, the search box "Search a product…" (each product with its SKU and its price), "Supplement ()", "Add choice" and "Add several" (window with a search box and checkboxes, and the "Category" field with "Tick all of “{category}” (N)": "Add N selected" ("Add 1 selected" with one); what is already in the course comes ticked "Already in this course"). At the end, the "Add a course" form (Course name, "Minimum picks", "Maximum picks", the checkbox "The same option may be picked more than once" and "Save"), which becomes "Course · {name}" when editing one.

States of each screen

State What the person sees
Loading "Loading…" in the table's slot; "Loading courses…" in the builder.
Empty "No menus yet. Create the first one with the + button."; with a search or a filter, "No results". In the builder, "No courses yet. Add the first one — a menu with no course has nothing to pick." and, in a course, "No choices yet: nobody can resolve this course.".
Error The table's notice with "Retry"; "The courses of this menu could not be loaded." in the builder. The refusal of a form shows inside the form, without losing what was typed; that of a choice, inside its course.
Reconnecting What is painted stays; a strip warns "Reconnecting…".
No longer exists If the menu is withdrawn while its builder is open (here or on another device), the builder empties and says "This menu no longer exists" ("It has been withdrawn, perhaps from another device."), with "All menus" to go back.
App inactive "This app is not active in this business".
No permission What they cannot do does not appear; if they arrive through another door, "You do not have permission".

Unsaved changes on Android

In this app's create and edit windows, the phone's Back button asks "Discard changes?" when something typed or chosen has not been saved: "Keep editing" keeps it and "Discard changes" closes the window without saving. With the window as it opened, Back closes it without asking; a price rewritten by itself in the business's currency is no change.

Flows

Look up and search the menus

Steps:

  1. Open Menus.
  2. Read the table: name, closed price, how it is sold, whether it is on sale and order.
  3. To find one, type in "Search a menu…" (ignoring case and accents: "menu del dia" finds "Menú del día"), sort by a column or filter by name, by how it is sold or by "On sale".
  4. Tap a row to open its builder.

If it fails: the loading error shows in the table with "Retry"; without menus, "No menus yet. Create the first one with the + button.".

Create a menu at a closed price

Steps:

  1. In Menus, tap +.
  2. Type the Name; if the kitchen ticket must say something else, the "Kitchen name".
  3. Type the "Closed price" (in Spain, "Closed price (EUR)"): what the customer pays for the whole menu, in the business's currency and with its decimals (the yen has none). Empty is 0. Through the assistant, a menu asked for without saying its price ("create the menu of the day") draws no card: it first asks how much it costs, and it is free only if the person says so.
  4. Choose "How is it sold?": "Eaten in" bills ONE line at the menu's rate, the drink included (the menu of the day); "Sold as a product / to take away": if all the choices are taxed the same, ONE line at that rate; if not, ONE line per dish, each one at its rate, with the price shared out.
  5. If it is "eaten in", choose the "VAT category" of the whole menu (in a restaurant, "Restaurant — food", at 10 %).
  6. Leave "On sale" ticked if it can already be sold and tap "Save".
  7. The form closes and the menu appears in the list. It is not on the till yet: it lacks the courses and the choices, which are added by tapping the menu to open its builder.

If it fails: "Save" is grey while the name is missing and while the business has not yet said its currency, because the price is read in it (without it, "1500" yen would be saved as 150,000); until then, leaving the price keeps it as typed, without inventing decimals for it or judging it: "¥1500" or "12,50 zł" are not marked red as "This is not an amount", and as soon as the currency arrives they are read in it. If the currency cannot be read, the window says so ("The business's currency could not be read", with the reason) and offers "Retry", which asks for it again; as soon as it arrives, "Save" lights up. Next to the field: "The menu needs a name.", "A menu eaten in needs its own VAT category: without it, it cannot be billed.", "This amount cannot be negative." (to make a choice cheaper, it gets a negative supplement in the builder), "This is not an amount. Type a figure, for example 12.50." (also with another currency's sign: "€13.50" in a business in Poland) and the one about the two possible readings of an amount ("1.250"), which quotes what was typed. A VAT category that does not exist in Taxes: "That tax category does not exist in Taxes.". The reason of a field goes as soon as that field is corrected, even if another one says the same. Without the right to manage there is no + button.

Change the details of a menu, put it on sale or take it off sale

Steps:

  1. In the menu's row, tap "Edit details".
  2. Change what is needed: name, price, way of selling, VAT category, order or "On sale".
  3. Tap "Save". The list shows the change at once.
  4. A menu with "On sale" unticked stays in the list, but the till stops offering it.
  5. Through the assistant, "take the menu of the day off sale" or "put it back on sale" comes up on a one-tap card, like the switch: "Change in Menus and combos" with the menu and how "On sale" is left, and "Run it" confirms it, with nothing to type. Changing the name, the price, the way of selling, the VAT category or the order, alone or together with "On sale", asks to type CONFIRM, because it may change how it is charged.

If it fails: the same warnings as when creating. Switching to "eaten in" without a VAT category is refused.

Withdraw a menu

Steps:

  1. In the menu's row, tap "Withdraw".
  2. Confirm in "Withdraw this menu?" ("Menu of the day" stops being on sale, together with its courses and choices. Tickets already issued keep reading it.).
  3. The menu disappears from the list, with its courses and its choices, and the till stops offering it. Whoever has it open in its builder sees "This menu no longer exists".

If it fails: the dialog says why and stays open; a menu that no longer exists, "That menu does not exist in this business.". An open check that already had it charges it as it was ordered. Through the assistant, a name that fits several menus or none brings up no card, and if before the "yes" another menu fits better what was said, nothing is withdrawn and the new card comes up.

Set up the courses of a menu

Steps:

  1. Open the menu (tap its row) and go down to "Add a course".
  2. Type the "Course name" (Starters, Mains, Dessert, Drink), the "Minimum picks" (1 or more makes the course compulsory; 0, optional) and the "Maximum picks" (0 is no limit). To begin with they come as 1 and 1.
  3. Tick "The same option may be picked more than once" only if it is needed (two coffees in the same menu).
  4. Tap "Save": the course goes in last, which is the last one asked.
  5. To change the order, drag the handle or use "Move up" and "Move down": the new order is saved whole at once. "Edit details" opens the course in the form and keeps its place. "Withdraw" removes it with its choices, after confirming it.

If it fails: next to the field: "The course needs a name.", "The maximum (1) is below the minimum (2): nobody could ever satisfy this course." and "That menu already has a course “Starters”.". A minimum or a maximum above 50 is refused, and so are more than 20 courses in a menu ("A menu holds 20 courses at most."). If the server refuses, the form says so and does not lose what was written. Through the assistant, when changing or withdrawing a course said by its name, a name that fits several courses or none brings up no card, and if before the "yes" another course or another menu fits better what was said, nothing is touched and the new card comes up. When adding or reordering courses of a menu said by its name, the "yes" counts only for the menu the card showed.

Choose the products of each course and their supplement

Steps:

  1. On the course's card, type in "Search a product…" and choose the product from Inventory's catalogue (it searches by name and by SKU).
  2. Type the "Supplement" (in Spain, "Supplement (EUR)"), in the business's currency, if substituting costs more (or less, with a minus sign: "-" or the "±" button at the end of the field, because a phone's decimal keyboard has no minus) than the closed price; empty is no supplement.
  3. Tap "Add choice": it goes in last. For several at once, "Add several": tick the boxes and tap "Add 3 selected" ("Add 1 selected" with one; all go in without a supplement and in the order they were ticked). For a whole category, choose it in "Category": the list shows its products and "Tick all of “Desserts” (6)" ticks the ones the course does not offer yet.
  4. To change the product or the supplement of a choice, tap its pencil: the form says "Editing «Flan». It keeps its position in the course.". With the handle, move up or move down it is reordered; the bin removes it, after confirming it.

If it fails: "Pick a catalogue product first.", "This course already offers that product. To let it be picked twice, switch on «the same option may be picked more than once».", "“Flan” is deactivated in Inventory: activate it before putting it in a menu.", "Only a product sold and priced by the unit can be a menu choice; “Cured cheese” is sold by kg.", "A course holds 40 choices at most." and the amount warnings ("This is not an amount. Type a figure, for example 1.50, or -0.50 for a discount." and the one about the two readings of "1.250"). "Add choice" (and "Save" when editing) is off while the business has not yet said its currency: the supplement is read in it, and without it "1500" yen would be saved as 150,000; until then, leaving the supplement keeps it as typed, without inventing decimals for it or judging it: "¥150" or "-0,50 zł" are not marked red as "This is not an amount", and as soon as the currency arrives they are read in it. If the currency cannot be read, the builder says so once, above the courses ("The business's currency could not be read", with the reason), and offers "Retry", which asks for it again; as soon as it arrives, the button lights up. "Add several" with nothing ticked: "Tick at least one product first."; a search or a category with no products: "No products match.". If the catalogue does not load, the search box says so with "Retry". A product that does not exist yet is created first in Inventory: the search box finds it as soon as it is saved. Through the assistant, when changing or removing a choice said by its product, a name that fits several choices or none brings up no card, and if before the "yes" another choice or another menu fits better what was said, nothing is touched and the new card comes up. When adding choices, a menu, a course or a product the business does not have, or a name that fits several, brings up no card either: the assistant looks it up under another name or asks which one it is. When adding or reordering choices, the "yes" counts only for the menu, the course and the product the card showed.

Choose a menu when selling

Steps:

  1. At the till, in "All", the menus on sale come first, each one with the "Menu" label and its closed price. Tap one: a sheet opens with its name and all its courses at once.
  2. Each course says its rule: "Choose N" if it asks for exactly N, "Choose N to M" if it asks for a minimum and allows up to a ceiling, "Choose at least N" if it asks for a minimum with no ceiling, "Up to N" if it only has a ceiling, "Optional" if not; and its available choices, with the supplement with its sign if it is not zero ("+€2.00" in Spain). On opening nothing is chosen.
  3. Choose: in a course of a single choice, tapping another one changes it; in one with a ceiling, on reaching it the next tap says "«Coffee» is full: take one out to choose another."; a choice that can be repeated carries its counter and its "−".
  4. While something is missing, the button says what ("Choose 1 in «Mains»") and tapping it points at that course; when each compulsory course is complete, it says "Add · " with the closed price plus the supplements. Tap it: the menu goes into the check as one line, with its dishes under the name.

If it fails: a menu is not on the till if it is not on sale, if it has no course with choices or if a compulsory course does not have enough available choices (sold out here or in Inventory, deactivated or deleted in Inventory). A sold-out choice is not on the sheet, and an optional course without available choices is not either. If Menus refuses the line, the sheet says why without closing («Charge the menu: closed price and supplements»). If the menus cannot be read, above the grid "The menus could not be read. Try again." with "Retry", and the products are sold just the same. With the employee profile they are also seen and sold.

Charge the menu: closed price and supplements

Steps:

  1. Add the menu with its dishes at the till («Choose a menu when selling»): the line goes in with the closed price plus the supplement of each choice, also that of a repeated one (two coffees, two supplements); a negative supplement makes it cheaper.
  2. Charge as always: the ticket puts the menu's name with its amount and, under it, each chosen dish.
  3. In an open check, the menu charges the amount it had when it was ordered even if afterwards it goes up in price, a dish runs out (the last flan served), it is taken off sale or it is withdrawn: when charging, Menus only checks again the dishes, the portions and how it is billed («Split the VAT of a menu»).

If it fails: the line does not go into the check and the sheet (or the assistant, or the API) says why:

"That menu does not exist in this business.", "That menu is no longer on sale.", "Pick something from the menu before adding it.", "The menu still needs a pick in “{course}”: pick {min}.", "The course “{course}” takes {max} at most.", "The course “{course}” does not take the same choice twice.", "“{product}” is not a choice of this menu.", "“{product}” is sold out.", "“{product}” can no longer be sold: it is deactivated or deleted in Inventory.", "“{product}” is no longer sold by units in Inventory, so it cannot be charged as a menu choice." and "The menu's amount cannot be negative.". Without Menus active, the till offers no menus and one asked for through the API is refused.

Split the VAT of a menu

Steps:

  1. Charge a menu "eaten in": the ticket puts it in ONE line, with its amount and the VAT category of the menu, even if a drink inside has another rate in the catalogue (art. 91.Uno.2.2º LIVA: the drink, also the alcoholic one, is ancillary to the restaurant service).
  2. Charge a menu "to take away": each dish goes to the tax category of its product, except what on the premises is a service and to take away is a sale of goods: the restaurant's beer or wine (10 % at the table) go to 21 % (art. 90 LIVA). If all go to the same category, it comes in ONE line with the amount and that category.
  3. If the dishes of a menu "to take away" go to different categories, the ticket puts the menu's name as a header and ONE line per chosen dish, each one with its VAT and the amount shared out in proportion to the catalogue price of each product (art. 79.Dos LIVA), with the leftover cent to the largest remainder (on a tie, to the dish that comes first); the sum is exactly the amount. Example: €6.00 over a sandwich of €4.50 (10 %) and a beer of €2.00 (21 %): €4.15 + €1.85. There is no menu line with money.
  4. The check shown before charging splits the same way as the charge.

If it fails: "Eaten in" without a VAT category cannot be saved («Create a menu at a closed price»). To take away, a dish whose category has no active equivalent in Taxes: "“{product}” is billed at {category}, which has no equivalent to take away in Taxes, so this menu cannot be sold to take away."; in a menu "to take away" that dish is not offered and the builder marks it "No VAT category to take away". "To take away" with a product without a tax category: "“{product}” has no tax category in Inventory, so this menu cannot be charged." (and it is not offered). Split with all the products at price 0 in the catalogue: "The products of this menu have no catalogue price, so its VAT cannot be split."; if all the offered choices of a menu "to take away" are worth 0 and go to different categories, the menu is not on the till.

Lower the stock of each dish when charging

Steps:

  1. Charge at the till a check with menus («Charge the menu: closed price and supplements»). In Menus nothing is done by hand.
  2. In a few seconds, Inventory lowers the stock of each chosen product: as many portions as menus and as times it was chosen (three menus with two coffees each, six coffees). The menu has no stock of its own, and a product of the service type or without stock control moves nothing.
  3. If the sale is voided, Inventory gives back everything that went out.
  4. If a part is refunded (one of three menus), Inventory puts back one portion of each dish of that menu.

If it fails: the sale is already charged; if Inventory cannot lower the stock at that moment, it retries on its own.

Send the menu to the kitchen

Steps:

  1. At the till, add a menu to the table's check choosing its dishes («Choose a menu when selling») and tap "Send order".
  2. Kitchen receives the kitchen ticket: each chosen dish at the station of its product (or of its category), under the menu's header with its kitchen name (or its name, if it has none), with the quantity times the menus ordered and the menu's note on each dish.
  3. On the paper of each station comes the same menu header with its dishes under it.

If it fails: a menu missing a compulsory course does not go into the check (Menus refuses it when it is ordered), so it never reaches the kitchen half done. A dish that is a service is not cooked.

Mark a choice as sold out

Steps:

  1. In the choice's row, tap "Sold out" (or say "no flan in the menu of the day today").
  2. The row is marked "Sold out" and the till stops offering it; the rest of the menu keeps being sold.
  3. When there is some again, tap "Available".
  4. If the product is marked sold out in Inventory, all its choices, in all the menus, show "Sold out in Inventory" and the till stops offering them at once, without touching the menu; they come back on their own when Inventory puts it on sale again.

If it fails: if marking it sold out leaves a compulsory course without enough choices, the menu stops being on the till and the builder's notice says so. An open check with a dish already ordered is charged the same.

When a product leaves the catalogue

Steps:

  1. Someone deactivates a product in Inventory: its choices stay in the menus, marked "Deactivated in Inventory", and the till does not offer them until it is reactivated.
  2. Someone deletes a product in Inventory: in a few seconds its choices leave on their own all the menus that offered it, and the open builder shows it at once. Meanwhile they come marked "No longer in the catalogue" and the till neither offers them nor can they be charged (from its screens a deleted product does not come back; if ERPlora's staff recover it from a separate copy, its choices come back with it).
  3. Look at the notice at the top of the builder: if a compulsory course has been left without enough choices, it says why the menu is no longer on the till; add another choice to that course.

If it fails: if a compulsory course is left without enough choices to offer, the menu stops being on the till and the builder's notice says why. If removing the choices fails, Menus retries on its own; meanwhile, they stay marked and nobody sells them.

The menu's photo

Steps:

  1. In the menu's "Edit details", under "Photo", tap "Choose from the library" (the image library opens with the menu's name already searched) or "Upload photo" (a JPG, PNG or WebP of up to 2 MB).
  2. Tap "Save": the menu keeps its photo. "Remove photo" leaves it with its initials.
  3. Through the assistant: "put a photo on the menu of the day". The assistant proposes up to five images of the library by their title alone, without their internal code, and asks which one; it never sets one on its own.

If it fails: next to "Photo", on choosing it, and nothing is uploaded: "The photo weighs more than 2 MB. Choose a lighter one." and "That file is not a photo. Upload a JPG, PNG or WebP image.". If the menu was saved and the photo was not, the window says so ("The menu has been saved, but the photo has not:", followed by the reason) with "Retry", which only sends the photo again, and the menu keeps the photo it had; the reason is "That image is no longer in the library. Choose another one.", "There is no space left for that file: your plan includes 1 GB." (with your plan's space) or "The photo could not be saved. Try again.". A menu without a photo, or whose photo does not load, shows its initials.

Recover the menus, their courses and their choices from a separate copy

Steps:

  1. The staff recovers from a separate copy with Menus, Menu courses, Menu choices of products ticked. Menus always goes after Inventory, whatever order it is asked in: a deleted product that comes back is already live when its choices are given back.
  2. First, each menu the copy has and the business no longer does (it withdrew it with its courses and choices, «Withdraw a menu») comes back as a new one, created as the Menus screen creates it («Create a menu at a closed price»): with its name, its kitchen name, its closed price, how it is sold (eaten in or to take away), its tax category, its order and on sale or not, as it was, and with the library image it had («The menu's photo»). Its own photo does not come back: it was deleted when the menu was withdrawn, and the copy is of the database, not of the files.
  3. Then, each course the copy has and its menu no longer does (the menu has just come back, or the business removed the course, «Set up the courses of a menu») is added to its menu again as the builder adds it: with its name, its minimum and maximum picks and whether the same choice may be picked again, at the end of the menu and in the order it had in the copy.
  4. Last, each choice that in the copy offered a product live there and that the business no longer has is added again to its course, the same one or the one that has just come back for it, as the menu builder adds it («Choose the products of each course and their supplement»): with its supplement and, if it was sold out in the copy, sold out («Mark a choice as sold out»). It goes at the end of the course, in the order it had in the copy. A product the business no longer had at all comes back as a new one, with another id : its choices are added to that one, the one the recovery made with its SKU.
  5. Recoveries counts it apart: "Menus: 1 created; Menu courses: 2 created; Menu choices of products: 3 created".

If it fails: what the business still has stays as it is: a menu or a course it keeps, even if it renamed it, and a choice it still has, even if it changed its product afterwards. A menu the business made again by hand with its name (the case and the spaces aside; two menus may share a name, so each one made by hand stands for one of the copy's) is not repeated, nor a course with its name in its menu (the case aside), nor a choice whose product the business already offered again in that course: the business's own stay, as it left them. What comes back is recognised afterwards even if renamed, so asking again adds nothing twice. What hung in the copy from a menu or a course the business made again by hand is not added to it, and Recoveries says why, by its id in the copy ("not_found: That menu does not exist in this business.", "not_found: That course does not exist in this menu."). A choice the business removed by hand after the copy also comes back, like everything the business no longer has. What the Menus screen or the builder does not accept today does not come back and Recoveries says why: a menu whose tax category is no longer active in Taxes ("invalid_field: …"; its courses and choices, "not_found: …"), a menu that already has 20 courses , a product still deleted or that the business no longer has (Products was not recovered, or the business already made another one by hand with its SKU, which keeps the choices it gave it) ("invalid_field: …"), switched off or no longer sold by units or a full course . The product a recovery made is recognised by its SKU, whether this recovery made it or an earlier one: asked again from an earlier copy, it offers it again in its courses the choices the business removed from it since, like everything it no longer has.

Services: what goes in and what comes out

Everything can be asked for through the screens, the assistant (by voice or by text, with the session of whoever speaks) and the API, with the same rules and permissions. A menu is named by its id or by its name; a course by its id or by its name within the menu; a product by its id, its SKU or its name. If a name fits several, it says which ones and asks to choose (combo.combo_ambiguous, combo.group_ambiguous, combo.option_ambiguous, inventory.product_ambiguous). Before an action, the assistant asks for confirmation with its card, which names each record as the screens name it, never by its identifier: the menu by its name ("Menu: Menu of the day"), the course by its name ("Course: Starters"), the choice by its product's name ("Choice: Lentils"), the product by its name ("New product: Soup") and, when reordering courses or choices or adding several products, each one by its name and in the order sent ("Courses: Mains, Starters"). What the person asking cannot see, or what no longer exists, is left out; what was said in words and cannot be read comes up as it was said. A menu said by its name when changing it, putting it on sale or taking it off sale, withdrawing it, giving it a photo or reordering its courses is looked up as the action will look it up (the same name before one that contains it), and the card shows the menu that will be touched, with its full name ("Menu: Vegan menu" when "vegan" was said). If what was said fits several menus or none, no card comes up: the assistant hears "There are several menus called "vegan": Vegan menu, Gluten-free vegan menu. Say which one." and asks which one, or "That menu does not exist in this business.". The "yes" counts only for the menu the card showed: if, before confirming, someone creates one that fits better what was said ("Menu" when the card said "Vegan menu"), nothing is touched and the new card comes up. A course or a choice said by its name when changing or withdrawing it is looked up the same way, inside its menu: if what was said fits several or none, or its menu fits several, no card comes up and the assistant asks which one; the card shows the menu they belong to with its full name, and the "yes" counts only for the course or the choice it found: if, before confirming, someone adds one that fits better what was said ("Desserts" when "Homemade desserts" was found) or a menu that fits better, nothing is touched and the new card comes up. The card shows the course and the choice it found ("Course: Homemade desserts" when "desserts" was said, "Choice: House flan" when "flan" was said). When adding or reordering courses and choices, and with an Inventory product said by its name, the card also shows the menu, the course and the product it found, and the "yes" counts only for them: if, before confirming, someone creates one that fits better what was said, nothing is touched and the new card comes up; if what was said fits several, the card shows it as it was said and the action asks which one; when adding choices, instead, no card comes up and the assistant asks which one. If the menu, the course or the choice comes by its identifier beside a name the action does not use (another menu's, another course's or another product's), the card neither reads nor shows that name: it says the record of the identifier, as when it comes alone. The same with the identifier of another menu or another course that comes beside the course's or the choice's, or beside that of the course a choice is added to, reordered in or looked for in: the action does not use it and the card does not show it.

What it offers: queries (they read, they change nothing)

What it gives Who can Flows Service
The menus, with search, filters and order, in pages of up to 100 (live) view «Look up and search the menus» combo.combo.list
A menu with its courses and its choices, whether it is on the till and why not (live) view «Set up the courses of a menu», «Choose the products of each course and their supplement», «Mark a choice as sold out», «When a product leaves the catalogue» combo.combo.get
A choice of a menu, by its id: only to name the dish on the assistant's card view «Choose the products of each course and their supplement» combo.option.get
A course of a menu with its choices, by its id or by its name within the menu: what the assistant's card reads to name it; it is not an assistant tool and has no API route view «Set up the courses of a menu», «Choose the products of each course and their supplement» combo.group.get
What a new choice names, before the assistant's card that adds it: the course, with its menu, and the Inventory product; if one does not exist or fits several, no card comes up; it is not an assistant tool and has no API route view «Choose the products of each course and their supplement» combo.option.check
The same with several choices at once: the course and each product, before the card that adds them; it is not an assistant tool and has no API route view «Choose the products of each course and their supplement» combo.option.bulk_check
The till's menu catalogue: the ones that can be sold, with their courses and their available choices (live) view «Choose a menu when selling» combo.combo.for_sale
The line of a menu with what was chosen: amount, components and tax split view «Charge the menu: closed price and supplements», «Split the VAT of a menu», «Lower the stock of each dish when charging», «Send the menu to the kitchen» combo.combo.resolve
Up to five images of the library for a menu's photo, by its name; it sets none view «The menu's photo» combo.combo.suggest_image

What it offers: actions (they change data)

What it does Who can Flows Service
Creates a menu manage «Create a menu at a closed price» combo.combo.create
Changes a menu (only what is sent) manage «Change the details of a menu, put it on sale or take it off sale» combo.combo.update
Puts a menu on sale or takes it off the till, changing nothing else manage «Change the details of a menu, put it on sale or take it off sale» combo.combo.set_active
Withdraws a menu with its courses and choices manage «Withdraw a menu» combo.combo.delete
Adds a course (at the end) manage «Set up the courses of a menu» combo.group.create
Changes a course (only what is sent) manage «Set up the courses of a menu» combo.group.update
Withdraws a course with its choices manage «Set up the courses of a menu» combo.group.delete
Orders the courses of a menu, all at once manage «Set up the courses of a menu» combo.group.reorder
Adds a choice (at the end) manage «Choose the products of each course and their supplement», «When a product leaves the catalogue», «Recover the menus, their courses and their choices from a separate copy» combo.option.create
Adds several choices at once manage «Choose the products of each course and their supplement» combo.option.bulk_create
Changes a choice: product, supplement or available (only what is sent) manage «Choose the products of each course and their supplement», «Mark a choice as sold out» combo.option.update
Removes a choice manage «Choose the products of each course and their supplement» combo.option.delete
Orders the choices of a course, all at once manage «Choose the products of each course and their supplement» combo.option.reorder
Removes the choices of a deleted product the platform only «When a product leaves the catalogue» combo.option.drop_product
Sets or removes a menu's photo, from the library manage «The menu's photo» combo.combo.set_image
Uploads a menu's own photo manage «The menu's photo» combo.combo.upload_image

What it announces

Notice When What it carries Service
New menu Creating a menu (or recovering it from a separate copy) id, name combo.combo.created
Menu changed Saving with some change id, name combo.combo.updated
Menu withdrawn Withdrawing id, name combo.combo.deleted
Course new, changed or withdrawn Creating (or recovering it from a separate copy), saving with changes or withdrawing a course id, combo_id combo.group.created, .updated, .deleted
Courses reordered Changing the order combo_id combo.group.reordered
Choice new, changed or removed Adding (one or several, or recovering it from a separate copy), saving with changes, marking sold out or removing; removing because the product was deleted carries reason: "product_deleted" id, group_id, combo_id, product_id combo.option.created, .updated, .deleted
Choices reordered Changing the order group_id, combo_id combo.option.reordered

What it reacts to

Notice from What Menus does Flows Service that listens
Inventory: product deleted Removes its choices from all the menus, in a few seconds (the worker's handing out of notices; repeating it changes nothing) «When a product leaves the catalogue» inventory.product.deleted → combo.option.drop_product

Besides, Inventory's product changes (inventory.product.updated, .deleted, and .restored when ERPlora's staff recover it from a separate copy) re-read live the builder and the till's catalogue: the name, the price, whether it is active and whether it is sold out belong to Inventory. To a recovered product it does not react: its choices come back from the copy («Recover the menus, their courses and their choices from a separate copy»).

What it needs from other apps

From What for Flows Service
Inventory (requires) The products that can be a choice, with their name, SKU, price, tax category, whether they are active and whether they are sold out (direct read: it is a required app) «Choose the products of each course and their supplement», «Choose a menu when selling», «Charge the menu: closed price and supplements», «Split the VAT of a menu», «Mark a choice as sold out» model inventory.Product; the screen's search box uses inventory.product.list (the active ones, sold out or not)
Taxes (requires) The tax categories of the selector and that of the menu "eaten in" «Create a menu at a closed price», «Change the details of a menu, put it on sale or take it off sale», «Split the VAT of a menu» model tax.TaxCategory; the selector uses tax.category.list
Platform The image library: searching it and naming by its title the image set on a menu «The menu's photo» base.catalog_image.search, base.catalog_image.get
Platform The recovery from a separate copy, to which Menus says which menus, courses and choices it gives back «Recover the menus, their courses and their choices from a separate copy» what its app module declares (recoverable_from_copy)

Contract with Sales

Sales does not require Menus: it calls it by the operation's name (call_app), with the session of whoever sells, and if Menus is not active the till offers no menus.

  • Till catalogue: useLive('combo.combo.for_sale', {limit: 50}). Each row: id, name, kitchen_name, price (cents), supply_kind, sort_order, image and image_url (its photo, «The menu's photo») and groups[] (id, name, min_choices, max_choices —0 no limit—, allow_repeat, options[] with id, product_id, product_name, sku, price_delta and allergens, those of the dish in Inventory). Only menus on sale that can be completed and available choices. The table's menu of Online orders reads the allergens of a menu's dishes from here.
  • When ordering and when charging: combo.combo.resolve with {id | combo, choices: [{option_id | product (+ group), quantity}], amount?, channel?}; channel (dine_in, takeaway, delivery) decides "eaten in" or "to take away", and without it the menu's setting applies. It returns combo_id, name, kitchen_name, supply_kind, price, supplements, amount, split and tax_category_key (that of the single line, or null if it is split) and components[] in order: option_id, group_id, group_name, product_id, product_name, sku, category_id, is_service, quantity (per menu), price_delta, catalog_price, tax_category_key and amount (its share, only if split).
  • What Sales does with that (done; tested with the real Sales): it freezes the response in the line when ordering (and its amount as the amount ordered); when charging it calls again with that amount and materialises ONE line (split = false, at tax_category_key) or ONE line per component (split = true, each one at its tax_category_key and for its amount), with no parent line with money; its preview (sale.checkout.preview) splits the same way; it multiplies the quantities by that of the line; it passes on Menus' 409s as they are, so a menu with a compulsory course not chosen never goes into the check nor reaches the kitchen; in a refund it sends the components × the quantity refunded as lines of sale.sale.refunded. A menu that Menus no longer knows when charging (withdrawn, or Menus turned off) is charged with what was frozen. The till does not send channel: the check has no channel (the "What is left out" of Sales), so the menu's setting rules.

Contract with Inventory

  • In the notice sale.sale.completed, Sales puts in the menu's line components[] with product_id, quantity (that of each dish times that of the line) and is_service of each component of «Charge the menu: closed price and supplements»; the menu's line does not move stock by itself (inventory.stock.apply_sale).
  • The void (sale.sale.voided) is put back by Inventory from its book of movements, and the refund (sale.sale.refunded) with the components × the menus refunded, one line per product (inventory.stock.restore_refund).
  • Tested end to end with the worker's real handing out of notices.

Contract with Kitchen

  • Kitchen does not read Menus. It receives from Sales, in sale.order.fired, the menu's line with name, kitchen_name and its components (product_id, product_name, category_id, quantity × menus), and puts each dish at its station under the menu's kitchen name, on the card and on paper . Tested end to end with the worker's real handing out of notices.

Who can do what

Permission Owner Administrator Manager Employee Service
See the menus, the till's catalogue and calculate a menu line yes yes yes yes combo.view
Create, change, order and withdraw menus, courses and choices, and a menu's photo yes yes yes no combo.manage