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: