POS/DocCheque

This section contains POS cheque document APIs.

GetPrecheckPrinted takes document_uuid and returns the unfinished cheque as HTML in result.print_data. The current user must have accepted its cash register; the shift must be open and the cheque must contain an active item. Opened, paying, delayed and delayed-payment cheques are supported. Payment is optional; printing does not change the cheque.

A precheck uses the existing sale template (type 1), including its logo and layout. There is no separate precheck template or type parameter in OperatingCash/EditChequeTemplate.
Sale, precheck, X/Z, shift opening and cash-in/out receipts share font, alignment, image, barcode and separator rendering. Optional sale sections such as footer or payments may be empty or omitted. Fonts support string and object notation with sizes from 1 to 72 pt; separator filling is limited to 80 characters.

Receipt formatting

Standard templates follow the sale receipt layout: 80 mm paper, zero side margins, Lucida Console at 10 pt for regular rows, and a bold 20 pt heading. Regular row intervals are -30 (equivalent to -2.48 mm); the heading interval is 10. Paper width includes side margins.

Amounts use thousands separators and two to three decimal places, as sale totals do. Sale payment rows retain their one to two decimal places. Dates and times use the same server culture and short date/time formats as sale receipts. Logos use the same size settings and spacing in all forms.

A text row with one <SF> marker places its label at the left edge and its value at the right edge of the printable area, regardless of the row's alignment or font weight. Long labels wrap. If both columns cannot fit side by side, the value moves to the next line, aligned right; values wider than the paper wrap without truncation. Font, emphasis and row intervals are preserved. Standalone fillers, multiple <SF> markers and rows mixing <SF> with other fillers retain space-based filling. Barcode and QR data are not split into columns.

Existing unchanged standard X/Z, opening and cash-in/out templates are updated automatically. Customized templates and logo settings are preserved.