f0f1f2.studio Template reference
English
Open application
Interface

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 — RepeatBillNumber is zero;
  • a reprint — RepeatBillNumber is above zero and holds the repeat number, which is printed in the heading;
  • an intermediate receipt for items added to a served order — AdditionalServiceChequeInfo is 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 pathDocument types
ModelGuest bill

Properties

NameTypeDescription
AdditionalServiceChequeInfoIAdditionalServiceChequeInfoAdditional order intermediate receipt details
CommonInfoIChequeCommonInfoCommon information
DefaultCashRegisterICashRegisterInfoInformation about the fiscal registrar
DiscountMarketingCampaignsIDiscountMarketingCampaignsMarketing offer discounts
ExtensionsIBillChequeExtensionsAdditional items
OrderIOrderOrder
RepeatBillNumberintRepeat guest bill number