Collection ticket layouts are located in the CWT configuration file and is defined as a normal ticket layout (see Appendix E ).
This section starts with a simple Example: and then a complete command and variable reference follows. Let us say you want to create a ticket layout that looks like this:
Note: All stored previous collections will be printed, the number of previous collections stored is set by the collectionHistory attribute (default 10) in the PAYUNITACCOUNT element, see section 3.9 |
Collection ticket layout Example:.
Here is what the ticket layout string would look like in the TICKET section of the CWT configuration file:
Example:
<TICKET ticketId="19" height="900" width="900" orientation="Portrait" layout="@fTahoma@f22@x0@y4@v80 @v82@lf@cr@lf@crTerminal: @v33@lf@crLocation: @v37@lf@crPay unit: @v400@lf@cr@lf@cr@f26Collection@f22@lf@crDate: @v432 @v434@lf@crId: @v401@lf@crUser: @v402@lf@crBoxId: @v437@lf@crTicket no: @v403@lf@crPurchases: @v492@lf@crAmount: @v404@lf@crNumber: @v405@lf@crPer Name/Denom.@lf@crN/D@x15Amount@x30Number@lf@cr@cchignore@beginloopcch@v481@x15@v406@x30@v407@lf@cr@endloopcch@cchhandle@cr@lf@f26Since Last Reset@lf@cr@f22Collections: @v419@lf@crPurchases: @v490@lf@crAmount: @v415@lf@crNumber: @v416@lf@crLast Reset Date: @v472 @v474@lf@crPer Name/Denom.@lf@crN/D@x15Amount@x30Number@lf@cr@cslrchignore@beginloopcslrch@v481@x15@v417@x30@v418@lf@cr@endloopcslrch@cslrchhandle@lf@cr@lf@cr@f26Previous collections@lf@cr@f22@pcignore@beginlooppc@lf@crDate: @v452 @v454@lf@crId: @v408@lf@crUser: @v409@lf@crBoxId: @v438@lf@crTicket no: @v410@lf@crPurchases: @v491@lf@crAmount: @v411@lf@crNumber: @v412@lf@crPer Name/Denom.@lf@crN/D@x15Amount@x30Number@lf@cr@pcchignore@beginlooppcch@v481@x15@v413@x30@v414@lf@cr@endlooppcch@pcchhandle@endlooppc@pchandle@cr@lf">
<margin left="24" right="0" top="0" bottom="0"/>
</TICKET>
Some general printing settings are made in the TICKET section of the CWT configuration file.
•The Ticket ID
•Height and width of the ticket specified in millimetres (mm).
•Which orientation the ticket is printed, Portrait or Landscape.
The margin for the ticket is set here. General printer settings are set elsewhere in the CWT configuration file.
The layout string itself is defined following “layout = “. This section in the manual focuses on the layout string.
The new code in the layout string part of the Example: is explained in the table above. Same code used in Appendix E can also be used in collection ticket layout.