IOperationServiceGetPriceTicketMarkup(IProduct, Decimal, IPrintingDeviceInfo) Method |
Builds one price ticket using the native Front template without printing. Stimulsoft falls back to Razor according to native Front behavior. Formatting and its hooks run during Print.
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
SyntaxPriceTicketMarkup GetPriceTicketMarkup(
IProduct product,
decimal amount,
IPrintingDeviceInfo printer
)
Parameters
- product IProduct
-
Product for the price ticket.
- amount Decimal
-
Product quantity in base units for one ticket, not the number of copies. A quantity outside the barcode format limits produces a document with Barcode equal to null.
- printer IPrintingDeviceInfo
-
Target printing device. It need not be assigned to a restaurant section.
Return Value
PriceTicketMarkup
The unformatted document and barcode passed to its template model. A missing barcode does not prevent document generation. A template may omit a non-null barcode. Reuse Document to print identical copies on the specified printer.
Exceptions
See Also