godtwmm
1
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

<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 TOTAL}','#,##0')]
{PAYMENTS}
<DB>
<J00>================================
<C00>Thank you, please come again!
</div>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS GROUP|PRODUCT GROUP]
[ORDERS]
-- Default format for orders
<span>
<J00>- {NAME} x{QUANTITY} | [=FF('{TOTAL PRICE}','#,##0')]
</span>
{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}
Jesse
2
In your template… replace <J00>=================== with <F>=
That should fix it.
It would look like this:
<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}
<F>=
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Total:|[=FF('{TICKET TOTAL}','#,##0')]
{PAYMENTS}
<DB>
<F>=
<C00>Thank you, please come again!
</div>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS GROUP|PRODUCT GROUP]
[ORDERS]
-- Default format for orders
<span>
<J00>- {NAME} x{QUANTITY} | [=FF('{TOTAL PRICE}','#,##0')]
</span>
{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}
Let me know if that works.
Jesse
4
If you take out the Div tags does it align correctly? You have an alignment set in the Div and you have justification set…
Or try taking the alignment out of your div and span tags since your using justification.
<span style="font-family:Tahoma">
<J00>Date: {TICKET DATE} | Table No: {ENTITY NAME:Table}
<J00>Time: {TIME} | Ticket No: {TICKET NO}
</span>
<div style="font-family:Tahoma">
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Total:|[=FF('{TICKET TOTAL}','#,##0')]
{PAYMENTS}
<DB>
<F>=
<C00>Thank you, please come again!
</div>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS GROUP|PRODUCT GROUP]
[ORDERS]
-- Default format for orders
<span>
<J00>- {NAME} x{QUANTITY} | [=FF('{TOTAL PRICE}','#,##0')]
</span>
{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}
Jesse
6
Might be a printer setting then… Character width maybe
godtwmm
7
if take out the Div tags , then
<span style="font-family:Tahoma">
<J00>Date: {TICKET DATE} | Table No: {ENTITY NAME:Table}
<J00>Time: {TIME} | Ticket No: {TICKET NO}
</span>
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Total:|[=FF('{TICKET TOTAL}','#,##0')]
{PAYMENTS}
<DB>
<F>=
<C00>Thank you, please come again!
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS GROUP|PRODUCT GROUP]
[ORDERS]
-- Default format for orders
<J00>- {NAME} x{QUANTITY} | [=FF('{TOTAL PRICE}','#,##0')]
{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}
godtwmm
8
i use
<J00:2>- {NAME} x{QUANTITY} | [=FF('{TOTAL PRICE}','#,##0')]
also not fix
Jesse
9
I think its a printer setting. What model printer? Maybe reduce your Line Character Count to 32
godtwmm
10
i setting Line Character Count between 42 to 58, not fix
Jesse
11
Try setting it at 32 and use the <F>=
instead of <J00>=============
like mentioned earlier. Also take out the div
tags again.
Jesse
12
Also can try adding font-size:13px
into your div and span tags adjust font size until it fits
godtwmm
13
This is Line Character Count 32 and no div tag, see
Jesse
14
Set your Line Character Count back to 42 and try this template.
<span style="font-family:Tahoma;font-size:13px">
<J00>Date: {TICKET DATE} | Table No: {ENTITY NAME:Table}
<J00>Time: {TIME} | Ticket No: {TICKET NO}
</span>
<div style="font-family:Tahoma;font-size:13px">
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J00>Total:|[=FF('{TICKET TOTAL}','#,##0')]
{PAYMENTS}
<DB>
<F>=
<C00>Thank you, please come again!
</div>
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS GROUP|PRODUCT GROUP]
[ORDERS]
-- Default format for orders
<span>
<J00>- {NAME} x{QUANTITY} | [=FF('{TOTAL PRICE}','#,##0')]
</span>
{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}
godtwmm
15
change font size , no fix too, i think it is about my country language
Jesse
16
Its probably the font it is printing in. Try the above template and change font size a few times to see if different results occur.
Maybe try font-size:16px
NOTICE when you tried Line character Count 32 it printed the <F>
tags correctly just did not justify.
Under [ORDERS]
try eliminating the <span>
tag there too
Jesse
18
Maybe try Line Character Count 30 Font size 13 Try adjusting both of those settings see if you can get it to align.
Notice Font size 10 was closer… at that line character count font size 8 might have worked
Definately should not be using <J00>=======
for line break it should be <F>=
Make sure you keep that set in your template.
Try eliminating span tag from your [ORDERS] definition as well. see if that makes difference
godtwmm
19
all are no fix, i think it is about my language character.
Jesse
20
It might be. I tried everything in my knowledge maybe someone else will see this and have little more knowledge on it.