IBillCheque
Definition
- Namespace
- Resto.Front.PrintTemplates.Cheques.Razor.TemplateModels
- Available since
- 3.5
The root model of the guest bill — the non-fiscal pre-bill brought to the guest before payment.
Detailed description
The most frequently customised document of the till. In a template it is Model: the order sits in Model.Order, the shared facts in Model.CommonInfo.
One root serves three scenarios, and a template has to tell them apart:
- an ordinary bill —
RepeatBillNumberis zero; - a reprint —
RepeatBillNumberis above zero and holds the repeat number, which is printed in the heading; - an intermediate receipt for items added to a served order —
AdditionalServiceChequeInfois filled. This is not a styling variation but a different document: its own heading, only the added items, its own totals. Check that field before anything else.
The document is non-fiscal, so it carries no till block (shift, cashier, fiscal receipt) — if you need those, you are looking at the wrong document. The fiscal registrar requisites are still available in DefaultCashRegister: that field exists for custom templates, and the stock one never prints it.
A delivery order gets a document of its own, IDeliveryBillCheque, carrying the address, the customer and the courier.
Available in documents
| Access path | Document types |
|---|---|
Model | Guest bill |
Properties
| Name | Type | Description |
|---|---|---|
| AdditionalServiceChequeInfo | IAdditionalServiceChequeInfo | Additional order intermediate receipt details |
| CommonInfo | IChequeCommonInfo | Common information |
| DefaultCashRegister | ICashRegisterInfo | Information about the fiscal registrar |
| DiscountMarketingCampaigns | IDiscountMarketingCampaigns | Marketing offer discounts |
| Extensions | IBillChequeExtensions | Additional items |
| Order | IOrder | Order |
| RepeatBillNumber | int | Repeat guest bill number |