How can i add price total as capture below in the bill please
<J00 {NAME}|{QUANTITY}x{PRICE} = {TOTAL AMOUNT}
Try this.
It goes under [ORDERS] section then put {ORDERS} where you want it.
Hi kendash,
I am not sure i put in correct line or not below are my template and got as capture below
[LAYOUT]
-- General layout
<BMP>d:\logo.bmp
<div style="font-size:14px; text-align:center">เปเบเบฎเบฑเบเปเบเบดเบ</div>
<div>.</div>
<div style="font-size:12px">
<L00>เบงเบฑเบเบเบต: {TICKET DATE} เปเบงเบฅเบฒ: {TIME}
<L00>เบเบดเบเปเบฅเบเบเบตเป: {TICKET NO}
<J10>เปเบเบตเปเบเบฐ: {ENTITY NAME:Table}
<J00>เบเบฐเบเบฑเบเบเบฒเบเบเบตเปเบกเบเบดเบ: {USER NAME}
</div>
<F>=
{ORDERS}
<J00> {NAME}|{QUANTITY}x{PRICE} = {TOTAL AMOUNT}
<F>=
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<table>
<tr>
<td align="right">Total:</td>
<td align="right">{TICKET TOTAL}</td>
</tr>
<tr>
<td align="right">Total in USD:</td>
<td align="right">[=F(TN('{TICKET TOTAL}')/TN('{EXCHANGE RATE:US}'),'#,##0 $')]</td>
</tr>
<tr>
<td align="right">Total in THB:</td>
<td align="right">[=F(TN('{TICKET TOTAL}')/TN('{EXCHANGE RATE:THB}'),'#,##0 THB')]</td>
</tr>
<tr>
<td align="right">เปเบเบดเบเบชเบปเบ:</td>
<td align="right">{TENDERED TOTAL}</td>
</tr>
<tr>
<td align="right">เปเบเบดเบเบเบญเบ:</td>
<td align="right">{CHANGE TOTAL}</td>
</tr>
</table>
<div style="font-size:12px; text-align:center">*** เบเบญเบเปเบเบเปเบฒเบเบเบตเปเบกเบฒเบญเบธเบเปเบนเบ ***</div>
<F>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
[TAXES]
<L00>Tax : {TAX NAME}
<F>-
I said under [ORDERS] NOT UNDER {ORDERS} put {ORDERS} where you currently have that line now.
Also, itโs {QUANTITY}*{PRICE}
, not {QUANTITY}x{PRICE}
Could i have your help to review my template below
[LAYOUT]
โ General layout
d:\logo.bmp
Total: | {TICKET TOTAL} |
Total in USD: | [=F(TN('{TICKET TOTAL}')/TN('{EXCHANGE RATE:US}'),'#,##0 $')] |
Total in THB: | [=F(TN('{TICKET TOTAL}')/TN('{EXCHANGE RATE:THB}'),'#,##0 THB')] |
เปเบเบดเบเบชเบปเบ: | {TENDERED TOTAL} |
เปเบเบดเบเบเบญเบ: | {CHANGE TOTAL} |
[SERVICES]
{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
โ Default format for orders
- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}
[ORDERS:Gift]
โ Format for gifted orders
- {QUANTITY} {NAME}|GIFT
{ORDER TAGS}
[ORDERS:Void]
โ Nothing will print for void lines
[ORDER TAGS]
โ Format for order tags
* {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
โ Table entity format
Table: {ENTITY NAME}
[ENTITIES:Customer]
โ Customer entity format
Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
[TAXES]
Tax : {TAX NAME}
-
You removed {ORDERS} tag so orders does not appear. Remove what youโve added between = signs and add {ORDERS} tag there. Scroll under the template and change [ORDERS] section to change format for the order line.
A printer template divided into sections to set a specific formatting for printout sections. For example you may need a specific formatting for an order line but a different formatting for a tax line. You define each formatting under [XXX] sections. To make a section appear in template you need to add {XXX} tag under [LAYOUT] section. For example if you want to [ORDERS] section appear you need to add {ORDERS} tag.
Here we have an explanation of the printer template formatting. That may give better idea.
Thank you all, i got it and under stand how to use print template now
thank you very much again