Click or drag to resize

IOperationServiceGetPriceTicketMarkup(IProduct, IBarcodeContainer, 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,
	IBarcodeContainer barcodeContainer,
	IPrintingDeviceInfo printer
)

Parameters

product  IProduct
Product for the price ticket.
barcodeContainer  IBarcodeContainer
Packing selected from the product barcode containers. Its current quantity in Front is used.
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
ArgumentExceptionThe barcode container does not identify a packing of the product.
ArgumentOutOfRangeExceptionQuantity is not positive.
PriceTicketGenerationExceptionThe price ticket could not be rendered.
See Also