# Price not aligned in bill (Thai language)

**URL:** <https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134>\
**Category:** V5 Question\
**Created:** [May 9, 2020, 4:12pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134 "2020-05-09T16:12:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 9, 2020, 4:12pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/1 "2020-05-09T16:12:44Z")

</div>

Hi, I’m kinda interested in buying this program and willing to transfer my old POS to this one, however I tried to customize due to my desire but I can’t solve this problem.

When it comes to Thai language menu, the price will not be in the same line (I used sambapos4 and sambapos5 still same)

```
[LAYOUT]
-- General layout
<div style="font-size:12px;font-family:'Tahoma'">
<J00>{ENTITIES}
<J00>Date:{TICKET DATE} | Time:{TIME}
<L00>Ticket No:{TICKET NO}
<F>-
</div>{ORDERS}
<EB>
<J00>Sub-Total:|[=FF('{PLAIN TOTAL}','#')]
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J00>Total:|[=FF('{TICKET TOTAL}','#')]
{PAYMENTS}
<DB>
<F>-
<C10>T H A N K Y O U

[DISCOUNTS]
<J00>{CALCULATION NAME} {CALCULATION AMOUNT}%|[=FF('{CALCULATION TOTAL}','#')]

[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]
-- Default format for orders ตัวนี้ถ้าใส่ total amount จะเป็นราคารวม
-- extra ไปแล้ว แต่ถ้าไม่อยากรวมให้ใส่ price
-- มีการใส่ item tag เพื่อใส่ภาษาไทย
<J00>{QUANTITY} {ITEM TAG:Thai}|[=FF('{TOTAL AMOUNT}','#')]
<J00> - {NAME}
{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} [=FF('{ORDER TAG PRICE}','#')]บ.

[ORDER TAGS:General Modifiers]
-- Leave empty to disable printing

[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}

[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

```

![Captggure](https://forum.sambapos.com/uploads/default/original/3X/5/c/5c381e98cfa9b810139ea101da841a6d8fc2ef66.jpeg)

I use html printer, the problem is same as

> [@Print Problem not align](https://forum.sambapos.com/t/print-problem-not-align/2425):
>
> price not align… i use samba pos 4.1.54 in windows 8, printer paper size is 80mm, this is printer setting and print template [image] \<span style="font-family:Tahoma;text-align:left"\> \<J00\>Date: {TICKET DATE} | Table No: {ENTITY NAME:Table} \<J00\>Time: {TIME} | Ticket No: {TICKET NO} \</span\> \<div style="font-family:Tahoma;text-align:left"\> \<F\>- {ORDERS} \<J00\>================================ \<EB\> {DISCOUNTS} {TAXES} [\<J10\>Total Gift:|{ORDER STATE TOTAL:Gift}] \<J00\>Total:|[=FF('{TICKET…

but I haven’t seen any solution yet

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [May 9, 2020, 6:50pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/2 "2020-05-09T18:50:01Z")

</div>

To properly layout using Thai language (or any Asian language for that matter) you will need to use HTML or Document Printer template format.

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 10, 2020, 1:38pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/3 "2020-05-10T13:38:33Z")

</div>

Hi markjw thanks for your message, anw I already use HTML printer format, anything wrong with my code please kindly advise. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [May 10, 2020, 11:57pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/4 "2020-05-10T23:57:52Z")

</div>

Might have set html printer type but you have only got html formatting on the top part with a div setting the font.  
Your orders section has no html. You need to use dovs or table etc to align ans format the layout.

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [May 12, 2020, 1:44pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/5 "2020-05-12T13:44:18Z")

</div>

I suggest you to create a new printer template, then click “Load” button and select “Ticket Template (HTML)”, it will create an HTML ticket template you can then edit to your requirements.

 ![image](https://forum.sambapos.com/uploads/default/original/3X/7/5/75c7efb8661e7c33752843ce73e6a0d2112aa675.png)

 ![image](https://forum.sambapos.com/uploads/default/original/3X/f/6/f6f8c37769c4bf237c04dbd786750979522ad557.png)

---

<div class="post-metadata">

**Author:** ![punzzzter](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/p/90ced4/32.png) [@punzzzter](https://forum.sambapos.com/u/punzzzter)\
**Post date:** [May 16, 2020, 6:30pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/6 "2020-05-16T18:30:58Z")

</div>

OMG it works like a charm! anyway I tried copying this format to sambaPOS4, but it didn’t work, so is it code for sambaPOS5 only?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [May 16, 2020, 9:14pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/7 "2020-05-16T21:14:03Z")

</div>

Cont remeber if vr had html printer type, check printer settings for printer type.

---

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [May 16, 2020, 9:56pm UTC](https://forum.sambapos.com/t/price-not-aligned-in-bill-thai-language/22134/8 "2020-05-16T21:56:19Z")

</div>

> [@punzzzter](#):
>
> so is it code for sambaPOS5 only?

Yes.

SambaPOS V4 did have HTML printer, however support was a lot more limited to what is now available in V5. The example template likely will not work in V4 as it uses `<table>` which AFAIK was not supported in V4.

It’s not to say you _ **can’t** _ create a suitable HTML template in V4 - you can - but it will be a lot more complicated.

Here is some I did from a long time ago with V4. I just had a look unfortunately I cannot find the databases anymore so can’t share the template.

 ![20150611_142322000_iOS](https://forum.sambapos.com/uploads/default/original/3X/8/7/8781c11296e015c19149e3e177ab305e30ea6f1d.png)

 ![20150611_142323000_iOS](https://forum.sambapos.com/uploads/default/original/3X/4/6/46ebe43b9a1c6b43e5211f5b667046570ad52f5c.png)

 ![20160127_015547442_iOS](https://forum.sambapos.com/uploads/default/original/3X/1/6/16c5b8ec87d5f5bcdd41fe9c6253add3ea0c9926.jpeg)
