Show TOC

Object documentationPrint Codes for Generic Printing

 

Print codes are character strings used by the Generic Printing function to specify elements to print on the receipt or to specify how they should be printed.

 

You use print codes to define Document Elements in the Item Type section of the Document Maintenance screen.

Print Code Categories

You access print codes by choosing a category from the Print Code category list. You apply a print code by drag and dropping it from the category list to the Item Type area in the Document Maintenance screen.

Print codes are separated into the following categories:

  • Multi-line elements

  • TLOG record handlers

  • Text format codes

  • Single detail TLOG items

  • Single miscellaneous items

  • Set options

Print code categories and print codes can also be accessed from the System Setup tab in the Configurator application. Users require permission rights to access print codes.

Structure

Text Format Codes

Print Code Configuration

Description

[LF=XX]

Line feeds xx lines, for example [LF=2], [LF=10]

[LF] is the same as [LF=1]

[%RIGHT]

Indicates that the line content will be right justified. The right justification continues to subsequent line(s) until a new alignment print code is set.

Note Note

This code applies only to receipt print output and not when File is selected as the print destination.

End of the note.

[%LEFT]

Indicates that the line content will be left justified. The left justification continues to subsequent line(s) until a new alignment print code is set.

Note Note

This code applies only to receipt print output and not when File is selected as the print destination.

End of the note.

[%CENTER]

Indicates that the line content will be placed in the center. The centre alignment continues to subsequent line(s) until a new alignment print code is set.

Note Note

This code applies only to receipt print output and not when File is selected as the print destination.

End of the note.

[INDENT=xx]

This code will indent text on the slip printer output where xx is the number of spaces to indent. This option is ignored for any other type of generic receipt (in other words, Receipt, Journal or File output). The indent command can exist multiple times to change the indent in a document. The indent value is retained from one document element to another until it is changed. The indent will reset to zero after the document is printed.

Note Note

The existing POS.INI option SLIPWIDTHOVERRIDE can be used to set the total width in characters of the slip. When formatting a line that has a left and right part, and using the INDENT command, the text is formatted to the width excluding the indent value. For example, for the total line, with SLIPWIDTHOVERRIDE=50 and the INDENT of 10, the text portion of the line will be formatted to fit to a width of 40. When printed, 10 spaces will appear before the text.

End of the note.
Print Codes for Customer Data

Print Code Configuration

Description

[CustInfo=RefNum]

Customer Reference Number

[CustInfo=LName]

Customer Last Name

[CustInfo=FName]

Customer First Name

[CustInfo=MName]

Customer Middle Name

[CustInfo=Addr]

Customer Address 1

[CustInfo=Addr2]

Customer Address 2

[CustInfo=City]

Customer City

[CustInfo=ZipCode]

Customer Zip Code

[CustInfo=StateProv]

Customer State/Province

[CustInfo=Country]

Customer Country

[CustInfo=Phone1]

Customer Phone 1

[CustInfo=Phone2]

Customer Phone 2

Example Example

The following is an example of how to use the customer data print codes to specify printing of customer information.

To print the following:

Configure the print code as follows:

John Doe

[CustInfo=FName;LName][LF]

123 Some Street

[CustInfo=Addr][LF]

Toronto

[CustInfo=City][LF]

ON,MOM OMO

[CustInfo=StateProv][TXT=,][CustInfo=ZipCode][LF]

End of the example.
Print Codes that Support Grouping Transaction Information Based on Department Category, Sales Items or Return Items

Print Code Configuration

Description

[DeptDesc=<Department Number>]

Prints the specified department description if a merchandise item from that department is sold in a transaction. If no item from the specified department is sold, no description is printed.

[MerchByDept=<Department Number>]

Groups merchandise items with the specified department number together and prints them on a standard receipt format. Along with the item description, the POS prints any discount records or profile prompts associated with it.

If no items from the specified department are sold, nothing is printed on the receipt.

[NonMerchDesc=<Description>]

Prints the description of a non-merchandise item when it is sold in a transaction. If no merchandise item is sold, no description is printed.

[NonMerch]

Prints all non-merchandise items in a transaction. Does not print anything if no non-merchandise items are sold.

[MerchPos]

Prints all non-voided merchandise items with a positive extended sell price (greater than zero). Also prints all discount records or profile prompts associated with these items.

This allows you to group and print sale and return items separately on the receipt.

[MerchNeg]

Prints all non-voided merchandise items with a negative extended sell price (less than zero). Also prints all discount records or profile prompts associated with these items.

This allows you to group and print sale and return items separately on the receipt.