2.3.14.b. How to Change, Edit Printer HTML Templates?
1- Printer Template Tags Documentation
2- Templates Which Used by Thermal Printer Papers
2.1- Ticket Printer Templates
2.1.1 HTML Ticket Template
2.2- Kitchen Order Printer Templates
2.3- Info Slip Printer Templates
2.4- Qmatik Printing Templates
2.5- Entity and Product Tracking Templates
2.6- Invoice and Official Ticket Templates
3- Templates That are Used on the Screens
3.1- Customer Indicator Templates
3.2- Customer Screen Templates
3.3- Kitchen Screen Templates
3.4- Custom Screen Templates
4- Custom Templates
1- Printer Template Tags Documentation
--Format Parts--
{ENTITIES} Entity List
{ORDERS} Order List
{ORDER TAGS} Order Tag List
{SORTED ORDER TAGS}
{TAXES} VAT List
{DISCOUNTS} Discount List
{SERVICES} Service List
{PAYMENTS} Payment List
{CHANGES} Change Payment List
--General Values--
DATE:X Formatted Date Day
SERVER DATE:X Formatted Date Day
DATE Date of the Day
TIME Time of the Day
SETTING:X Setting Value
LOCAL SETTING:X Reads local setting value
GLOBAL SETTING:X Reads global setting value
CSETTING:X Setting with cache
RANDOM Date based random number
RANDOM:X Random number
RANDOMC:X Random number with control digit
ACCOUNT BALANCE:X
ENTITY ACCOUNT BALANCE:X
ENTITY STATE MINUTES BY NAME:X :<ET>.<EN>:<ST>:<F>
ENTITY CUSTOMDATA BY NAME:X :<ET>.<EN>:<FN>
ENTITY STATE BY NAME:X :<ET>.<EN>:<ST>
CALL:X Script :<handler>.<function>(args)
--Ticket Values--
TICKET DATE
TICKET TIME
TICKET DATE:X
LAST ORDER TIME
ORDER NUMBERS
CREATION MINUTES
LAST ORDER MINUTES
TICKET ID
TICKET NO
TICKET UID
USER NAME
DEPARTMENT
NOTE
PLAIN TOTAL
PLAIN TOTAL:X
DISCOUNT TOTAL
TAX TOTAL
TAX TOTAL:X Tax Total for the Order State
TAX AMOUNT:X Tax Total
TICKET TOTAL
PAYMENT TOTAL
PAYMENT TOTAL:X
CHANGE PAYMENT TOTAL:X
TENDERED TOTAL
CHANGE TOTAL
BALANCE
REMAINING TOTAL
TOTAL TEXT
TOTALTEXT
TICKET TYPE
TICKET TAG:X
TICKET TAGN:X Numerical Ticket Tag
TICKET STATE:X
TICKET STATE VALUE:X
TICKET STATE QUANTITY:X
TICKET STATE MINUTES:X
CALCULATION TOTAL:X
ENTITY NAME:X
ENTITY DATA:X Custom Data of an entity: <entity type>: <field name>
ENTITY BALANCE:X : <entity type>
ENTITY ACCOUNT NAME:X : <entity type>
ENTITY NOTE:X : <entity type>: <note name>
ORDER STATE TOTAL:X
ORDER STATE QUANTITY TOTAL:X
ORDER TAG TOTAL:X
SERVICE TOTAL
EXCHANGE RATE:X
TICKET QUANTITY SUM:X
TICKET QUANTITY SUM
ORDER COUNT
SELECTED ORDERS
ITEM TAG PLAIN TOTAL:X
ITEM TAG TOTAL:X
--Order Values--
QUANTITY #Line:
NAME #Line:
PRODUCT NAME
PORTION
GROUP TAG
PORTION:X
PORTION NAME
PRICE #Line:
TOTAL PRICE
TOTAL #Line:
PRICE:X
TOTAL AMOUNT #Line: Product Amount x Quantity
CENTS #Line: Cent Based Price
LINE AMOUNT #Line: Product Amount (Gift Exluded)
ORDER NO #Line:
ORDER UID Order Unique ID
ORDER DATE
ORDER TIME
ORDER KEY
PRICE TAG #Line:
ORDER TAG LIST:X
ORDER TAG JSON
ORDER TAG:X
ORDER TAG PRICE:X
ORDER TAG RATE:X
ORDER TAG DESCRIPTION:X
ORDER TAG NOTE:X
ORDER TAG TOTAL
ORDER STATE:X
ORDER STATE VALUE:X
ORDER STATE MINUTES:X
ORDER TAX RATE:X
ORDER TAX TEMPLATE NAMES
ITEM ID
BARCODE
GROUP CODE
PRODUCT TAG
ITEM TAG
ITEM TAG:X
SEPARATOR KEY
PORTION COUNT
PORTION BUTTONS
PORTION BUTTONS:X?
ORDER ID
ORDER INDEX
INDEX TOTAL
PRODUCT TIMER START TIME
PRODUCT TIMER END TIME
PRODUCT TIMER PRICE
PRODUCT TIMER VALUE
PRODUCT TIMER NAME
PRODUCT TIMER DURATION
--Order Tag Values--
ORDER TAG PRICE
ORDER TAG TOTAL PRICE
ORDER TAG RATE
ORDER TAG QUANTITY
ORDER TAG NAME
ORDER TAG NOTE
ORDER TAG DESCRIPTION
ORDER TAG LABEL
--Ticket Entity Values--
ENTITY NAME
ENTITY BALANCE
ENTITY DATA:X Custom Fields
--Entity Values--
ENTITY NAME
ENTITY BALANCE
ENTITY BALANCE DEBIT
ENTITY BALANCE CREDIT
ENTITY DATA:X
ENTITY NOTE:X
ENTITY STATE:X
ENTITY STATE QUANTITY:X
ENTITY STATE MINUTES:X
ACCOUNT NAME
ACCOUNT ID
ENTITY ID
ENTITY TYPE ID
--Calculation Values--
CALCULATION NAME
CALCULATION AMOUNT
CALCULATION TOTAL
EXCHANGE RATE
EXCHANGE AMOUNT
--Payment Values--
PAYMENT AMOUNT
EXCHANGE AMOUNT
PAYMENT NAME
PAYMENT TYPE NAME
TENDERED AMOUNT
CHANGE
EXCHANGE RATE
DESCRIPTION
--Change Payment Values--
CHANGE PAYMENT AMOUNT
EXCHANGE AMOUNT
CHANGE PAYMENT NAME
EXCHANGE RATE
--Tax Values--
TAX AMOUNT
TAX RATE
TAXABLE AMOUNT
TOTAL TAXABLE AMOUNT
TAX NAME
--Account Transaction Document Values--
DOCUMENT DATE
DOCUMENT TIME
DESCRIPTION
DOCUMENT BALANCE
--Account Transaction Values--
DESCRIPTION
AMOUNT
EXCHANGE RATE
TRANSACTION TYPE NAME
SOURCE ACCOUNT TYPE
SOURCE ACCOUNT
SOURCE DEBIT
SOURCE CREDIT
SOURCE AMOUNT
SOURCE BALANCE
TARGET ACCOUNT TYPE
TARGET ACCOUNT
TARGET DEBIT
TARGET CREDIT
TARGET AMOUNT
TARGET BALANCE
--Report Values--
REPORT TASK DETAILS:X
GET TASK DETAILS:X
REPORT SQL DETAILS:X
REPORT MENU ITEM DETAILS:X
REPORT PORTION DETAILS:X
REPORT MENU ITEM TAG DETAILS:X
REPORT ENTITY DETAIL:X
REPORT ENTITY DETAILS:X
ENTITY LIST EXP:X
REPORT ENTITY STATE DETAILS:X
REPORT ENTITY STATE TOTAL DURATION:X
REPORT ENTITY STATE TOTAL HOURS:X
REPORT ENTITY STATE TOTAL MINUTES:X
REPORT ENTITY STATE TOTAL SECONDS:X
REPORT ENTITY STATE COUNT:X
ENTITY STATE ENTITY LIST:X
ENTITY STATE START DATE LIST:X
ENTITY STATE END DATE LIST:X
REPORT TICKET TYPES:X
REPORT PAYMENTS
REPORT REFUND PAYMENTS
REPORT TICKET STATES
REPORT ORDER STATES
REPORT TICKET TAGS
REPORT INVENTORY
REPORT INVENTORY:X
REPORT COST
REPORT COST:X
REPORT INVENTORY TRANSACTION DETAILS:X
REPORT CONSUMPTION DETAILS:X
REPORT COST DETAILS:X
INVENTORY TRANSACTION TYPE LIST
TICKET ORDER TOTAL EXP:X
TICKET ORDER EXACT TOTAL EXP:X
TICKET ORDER TAX TOTAL EXP:X
TICKET ORDER COUNT EXP:X
TICKET ORDER QUANTITY TOTAL EXP:X
TICKET ORDER TAG TOTAL EXP:X
TICKET ORDER STATE VALUE TOTAL EXP:X
REPORT ORDER DETAILS:X
REPORT ORDER TAG DETAILS:X
REPORT ORDER COUNT:X
REPORT ORDER TOTAL:X
REPORT ORDER QUANTITY TOTAL:X
REPORT PAYMENT DETAILS:X
REPORT PAYMENT COUNT:X
REPORT PAYMENT TOTAL:X
REPORT CHANGE PAYMENT DETAILS:X
REPORT CHANGE PAYMENT COUNT:X
REPORT CHANGE PAYMENT TOTAL:X
REPORT CALCULATION DETAILS:X
REPORT CALCULATION COUNT:X
REPORT CALCULATION TOTAL:X
REPORT TICKET DETAILS:X
REPORT TICKET TOTAL:X
REPORT TICKET TOTAL
REPORT TICKET PAYMENT TOTAL:X
REPORT TICKET PAYMENT TOTAL
REPORT TICKET CALCULATION TOTAL:X
REPORT TICKET COUNT:X
REPORT TICKET COUNT
REPORT TICKET LOG DETAILS:X
TICKET TAG LIST:X
TICKET TYPE LIST
TAX TYPE LIST
FIRST TICKET NO
FIRST TICKET ID
LAST TICKET NO
LAST TICKET ID
WORKPERIOD ID
ACCOUNT TOTAL:X
ACCOUNT DEBIT TOTAL:X
ACCOUNT CREDIT TOTAL:X
ACCOUNT TYPE BALANCE:X
ACCOUNT TYPE DEBIT BALANCE:X
ACCOUNT TYPE CREDIT BALANCE:X
ACCOUNT TRANSACTION TOTAL:X
ACCOUNT TRANSACTION DEBIT TOTAL:X
ACCOUNT TRANSACTION CREDIT TOTAL:X
ACCOUNT TRANSACTION DETAILS:X
ACCOUNT TRANSACTION COUNT:X
REPORT ACCOUNT TRANSACTION DETAILS:X
--Order Sorting--
[ORDERS GROUP|ORDER STATE:x]
[ORDERS GROUP|ORDER TAG:x]
[ORDERS GROUP|PRODUCT GROUP]
[ORDERS GROUP|PRODUCT TAG]
[ORDERS GROUP|BARCODE] i
[ORDERS FOOTER]
{GROUP KEY}
{GROUP SUM}
{QUANTITY SUM}
2.1.1 HTML Ticket Template
[LAYOUT]
-- General layout
<div style="text-align:Center">
<img src="https://sambapos.com/wp-content/uploads/2016/10/logo.png" width="150" height="30">
</div>
<div style="font-size:11px;font-family:Calibri">
<table>
<tr>
<td width=80 align=Left>Order Time :</td> <td width=180>{TICKET TIME}</td>
</tr>
<tr>
<td width=80 align=Left>Order Date :</td> <td width=180>{TICKET DATE}</td>
</tr>
<tr>
<td width=80 align=Left>Operator :</td> <td width=180>{USER NAME}</td>
</tr>
<tr>
<td width=80 align=Left>{TICKET TYPE} No:</td> <td width=180>{TICKET NO}</td>
</tr>
</table>
</div>
<div style="font-size:11px;font-family:Calibri">
<table>
{ENTITIES}
</table>
</div>
======================================
<div style="font-size:10px;font-family:Calibri">
<table>
<tr>
<td width=170 align=Left>QUANTITY PRODUCT NAME </td><td width=30 align=Right>B PRICE</td><td width=30 align=Right>AMOUNT</td>
</tr>
</table>
</div>
<div style="font-size:11;font-family:Calibri">
<table>
{ORDERS}
</table>
</div>
--------------------------------------
<div style="font-size:12px;font-family:Calibri">
<table>
<tr>
<td width=160 align=Left>Document Total:</td><td width=70 align=Right>{PLAIN TOTAL: }</td>
</tr>
{PAYMENTS}
{DISCOUNTS}
{TAXES}
{SERVICES}
</table>
</div>
<div style="font-size:12px;font-family:Calibri">
<table>
<tr>
<td width=160 align=Left>Tendered Total:</td><td width=70 align=Right>{TENDERED TOTAL}</td>
</tr>
</table>
</div>
<div style="font-size:18px;font-family:Tahoma">
<table>
<tr>
<td width=160 align=Left>Remaining Total:</td><td width=70 align=Right>{REMAINING TOTAL}</td>
</tr>
</table>
</div>
======================================
<div style="font-size:14px;font-family:Calibri;text-align:Center">
THANK YOU <br><br>
</div>
<div style="font-size:12px;font-family:Tahoma;text-align:Center">
IF YOU WANT TO SHARE THE BILL
{TICKET TAGN:Person Count} x [=F(TN('{REMAINING TOTAL}')/{TICKET TAGN:Person Count})]
<img src="C:\Users\isaak\Documents\SambaPOS5\logo1.jpg" width="230" height="60">
</div>
[DISCOUNTS]
<tr>
<td width=160 align=Left>{CALCULATION NAME}:</td><td width=70 align=Right>{CALCULATION TOTAL}</td>
</tr>
[SERVICES]
<tr>
<td width=160 align=Left>{CALCULATION NAME}:</td><td width=70 align=Right>{CALCULATION TOTAL}</td>
</tr>
[TAXES]
<tr>
<td width=160 align=Left>{TAX NAME} %{TAX RATE}:</td><td width=70 align=Right>{TAX AMOUNT}</td>
</tr>
[PAYMENTS]
<tr>
<td width=160 align=Left>{PAYMENT NAME}:</td><td width=70 align=Right>{PAYMENT AMOUNT}</td>
</tr>
[ORDERS]
-- Default format for orders
<tr>
<td width=170>-{QUANTITY} {NAME}</td><td width=30>{PRICE} </td><td width=30 align=Right> {TOTAL PRICE}</td>
</tr>
{ORDER TAGS}
[ORDERS:Gifts]
-- Format for gifted orders
<tr>
<td width=170>- {QUANTITY} {NAME} </td><td width=30>{PRICE}</td><td width=30> *GIFT*</td>
</tr>
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<tr>
<td width=170> *{ORDER TAG QUANTITY} x {ORDER TAG NAME}</td> <td width=30>{ORDER TAG PRICE}</td><td width=30 Align=Right>{ORDER TAG TOTAL PRICE}</td>
</tr>
[ENTITIES:Table]
-- Table entity format
<tr>
<td width=50>Masa:{ENTITY NAME}</td> <td width=180>Person Count:{TICKET TAGN:Person Count}</td>
</tr>
[ENTITIES:Customer]
-- Customer entity format
<tr>
<td width=60>Customer:{ENTITY DATA:Name} <td width=180>{ENTITY NAME}</td>
</tr>
<tr>
<td width=60>Phone:</td> <td width=180>{ENTITY DATA:Phone}</td>
</tr>
<tr>
<td width=60>Address:</td> <td width=180>{ENTITY DATA:Address} </td>
</tr>
<tr>
<td width=60>Tarif:</td> <td width=180>{ENTITY DATA:Tarif} </td>
</tr>