Click or drag to resize

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.Api
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
PriceTicketMarkup 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
ExceptionCondition
ArgumentOutOfRangeExceptionQuantity is not positive.
PriceTicketGenerationExceptionThe price ticket could not be rendered.
See Also