Price total print in the bill

How can i add price total as capture below in the bill please

<J00 {NAME}|{QUANTITY}x{PRICE} = {TOTAL AMOUNT} Try this.

1 Like

Hi gsreddy, got this below

It goes under [ORDERS] section then put {ORDERS} where you want it.

1 Like

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.

1 Like

Also, it’s {QUANTITY}*{PRICE}, not {QUANTITY}x{PRICE}

1 Like

Could i have your help to review my template below

[LAYOUT]

– General layout
d:\logo.bmp

ໃບຮັບເງິນ
.
ວັນທີ: {TICKET DATE} ເວລາ: {TIME} ບິນເລກທີ່: {TICKET NO} ເບີໂຕະ: {ENTITY NAME:Table} ພະນັກງານພີ້ມບິນ: {USER NAME}
= [ORDERS] {QUANTITY}*{PRICE}, not {QUANTITY}x{PRICE} = {DISCOUNTS} {TAXES} [Total Gift:|{ORDER STATE TOTAL:Gift}] {SERVICES}
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}
*** ຂອບໃຈທ່ານທີ່ມາອຸດໜູນ ***
[DISCOUNTS] {CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION 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.

https://sambapos.org/en/content/creating-printer-templates

1 Like

Thank you all, i got it and under stand how to use print template now
thank you very much again :slight_smile: