Regarding ticket print issue

Good Morning All,
I have an issue in ticket printing.
When I am configuring the ticket print, it is coming correctly, but when I am taking the print its coming wrongly.
Am using the HTML printer.
Below image is Preview.

and below is my template code

Tax Invoice
?????? ??????
----------------------
ASDSADSD
SDSDS
Tel:, Mob:
TRN:
----------------------
Date:{TICKET DATE},No:{TICKET NO}
Table:{ENTITY NAME:Table}
-
Item Qty Price Total
- {ORDERS} - [Total Gift:|{ORDER STATE TOTAL:Gift}] {SERVICES}
Total Before VAT:
[=F(TN('{TICKET TOTAL}')/1.05)]
{DISCOUNTS}
Vat (5%):
[=F((TN('{TAX TOTAL}')),'0.00')]
--------------------------------
Total:
{TICKET TOTAL}
{PAYMENTS}
--------------------------------
*** T H A N K Y O U ***
[DISCOUNTS] {CALCULATION NAME}:|{CALCULATION TOTAL}

[SERVICES]
{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]
{PAYMENT NAME}

[ORDERS]
– Default format for orders

{NAME}
{QUANTITY}
{PRICE}
{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}

[ENTITIES:Deliverers]
– Deliverer entity format
Deliverer: {ENTITY NAME}

And am getting the print like below

Firstly when pasting template you need to highlight the code and click the <> button in formatting bar so as to prevent the forum stripping the code parts.

Secondly can you explain the issue.
All you say is it’s wrong.
Do you mean its printing till roll width on a4 page?
It’s hard to just guess what your referring to as wrong.

Also have changed topic to question rather than bug until an actual bug is identified.

The issue is ,

In the preview, the total is showing

Total before VAT is showing : 14.29
VAT (5%) : 0.71

Total : 15.00

But in the print its coming,

Total before VAT is showing : 15.00
VAT (5%) : 0.75

Total : 15.75

And below am giving the code

<div style="font-size:16px;text-align:center;">
<table>
<tr><td width="275">Tax Invoice</td> </tr>
<tr><td width="275">?????? ??????</td> </tr>
<tr><td width="275">----------------------</td> </tr>
<tr> <td width="275">ASDSADSD</td> </tr>
<tr> <td width="275">SDSDS</td></tr>
<tr> <td width="275">Tel:, Mob:</td> </tr>
<tr> <td width="275">TRN:</td> </tr>
<tr><td width="275">----------------------</td> </tr>
<tr><td width="275" style="text-align:left;"><div style="font-size:13px;text-align:left;">Date:{TICKET DATE},No:{TICKET NO}</div></td></tr>
<tr><td width="275"><div style="font-size:13px;text-align:left;">Table:{ENTITY NAME:Table}</div></td> </tr>
</table>
</div>
<F>-
<div style="font-size:13px;text-align:left;">
<table>
<tr>
<td width="160">Item</td><td width="25">Qty</td><td width="45">Price</td><td width="50">Total</td>
</tr>
</table>
</div>
<F>-
{ORDERS}
<F>-
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<div style="font-size:15px;text-align:left;">
<table>
<tr> 
<td width="165"><div style="font-weight:bold;">Total Before VAT:</div></td>
<td width="100"><div style="text-align:right;font-weight:bold;">[=F(TN('{TICKET TOTAL}')/1.05)]</div></td>
</tr>
<tr> <td width="165">{DISCOUNTS}</td><td width="100"></td></tr>
<tr> <td width="165"><div style="font-weight:bold;">Vat (5%): </div></td>
<td width="100"><div style="text-align:right;font-weight:bold;">[=F((TN('{TAX TOTAL}')),'0.00')]</div></td>
</tr>
<tr> <td width="265">--------------------------------</td></tr>
<tr> <td width="165"><div style="font-weight:bold;">Total:</div></td>
<td width="100"><div style="text-align:right;font-weight:bold;">{TICKET TOTAL}</div></td>
</tr>

<tr> <td width="265">{PAYMENTS}</td></tr>
<tr> <td width="265">--------------------------------</td></tr>
<tr> <td width="265"><div style="text-align:center;">*** T H A N K   Y O U ***</div></td></tr>
</table>
</div>
<DB> 
[DISCOUNTS]
<J00>{CALCULATION NAME}:|{CALCULATION TOTAL}

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

[PAYMENTS]
<J00>{PAYMENT NAME}: |{TENDERED TOTAL}
<J00>Change Due: |{CHANGE TOTAL}

[ORDERS]
-- Default format for orders
<div style="font-size:13px;">
<table>
<tr>
<td width="150">{NAME}</td>
<td width="25"><div style="text-align:right;">{QUANTITY}</div></td>
<td width="40"><div style="text-align:right;">{PRICE}</div></td>
<td width="50"><div style="text-align:right;">{TOTAL PRICE}</div></td>
</tr>
</table>
</div>
{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
<L10>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

[ENTITIES:Deliverers]
-- Deliverer entity format
<J00>Deliverer: {ENTITY NAME}

Can you show this ticket on screen?
Also these are two different tickets in preview and print.
As it is posible to define prices inc and exc tax could really do with seeing same ticket as cannot rule out changes made between prints/tickets.

1 Ticket Screen


2. Also these are two different tickets in preview and print.- that is ok but its showing in the same ticket also.
3. I have given include tax for the ticket

Hello @JTRTech ,

Can you help me to clear the above issue.

As I said I would prefer to see the same ticket in each screen and in pos to limit the possibilities as template seems ok.
Although plain total I think should give you net value rather than hard coding calculation for net which would give issues if forgotten should tax change.

Again am giving the screen shots

  1. Screen

  1. Code


    ASDSADSA
    SDFSDFD/td>
    SDFDS
    DSFDSF
    Tel:
    Tax Invoice
    فاتورة ضريبية
    {TICKET TYPE} Date: {TICKET DATE} {TIME} Table No: {ENTITY NAME:Table} Ticket No: {TICKET NO} Waiter: {TICKET TAG:Waiters} </div
    -
    Item
    Qty
    Price Total
    - {ORDERS} -D [Total Gift:|{ORDER STATE TOTAL:Gift}] {SERVICES}
    Total Before VAT:
    {PLAIN TOTAL}
    {DISCOUNTS}
    Vat (5%):
    {TAX TOTAL}
    --------------------------------
    Total:
    {TICKET TOTAL}
    {PAYMENTS}
    --------------------------------
    *** T H A N K Y O U ***
    [DISCOUNTS] {CALCULATION NAME}:|{CALCULATION TOTAL}

    [SERVICES]
    {CALCULATION NAME}|{CALCULATION TOTAL}

    [PAYMENTS]
    {PAYMENT NAME}

    [ORDERS]
    – Default format for orders

    {NAME}
    {QUANTITY}
    {PRICE}
    {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}

    [ENTITIES:Deliverers]
    – Deliverer entity format
    Deliverer: {ENTITY NAME}

  2. Preview

report.
image

for the plain total I gave {PLAIN TOTAL}

<table>
<tr>
<td width="275">
<div style="font-size:16px;text-align:center;">
<table>
<tr> <td width="275">ASDSADSA</td> </tr>
<tr> <td width="275">SDFSDFD/td> </tr>
<tr> <td width="275">SDFDS</td> </tr>
<tr> <td width="275">DSFDSF</td> </tr>
<tr> <td width="275">Tel:</td> </tr>
<tr> <td width="275"></td> </tr>
<br>
<tr> <td width="275">Tax Invoice</td> </tr>
<tr> <td width="275">فاتورة ضريبية</td> </tr>
</table>
</div>
<div style="font-size:15px;text-align:left;">
<J00>{TICKET TYPE}
<J00>
<J00>Date: {TICKET DATE} {TIME}
<J00>Table No: {ENTITY NAME:Table}
<J00>Ticket No: {TICKET NO}
<L00>Waiter: {TICKET TAG:Waiters}
</div
</td>
</tr>
</table>
<F>-
<table>
<tr>
<td width="160">Item</td>
<td width="25"><div style="text-align:left;">Qty</div></td>
<td width="45">Price</td>
<td width="50">Total</td>
</tr>
</table>
<F>-
{ORDERS}
<F>-D
<EB>
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J7>
<div style="font-size:15px;text-align:left;">
<table>
<tr> <td width="165">Total Before VAT:</td><td width="100"><div style="text-align:right;">{PLAIN TOTAL}</div></td></tr>
<tr> <td width="165">{DISCOUNTS}</td><td width="100"></td></tr>
<tr> <td width="165">Vat (5%): </td><td width="100"><div style="text-align:right;">{TAX TOTAL}</div></td></tr>
<tr> <td width="265">--------------------------------</td></tr>
<tr> <td width="165">Total:</td><td width="100"><div style="text-align:right;">{TICKET TOTAL}</div></td></tr>
<tr> <td width="265">{PAYMENTS}</td></tr>
<tr> <td width="265">--------------------------------</td></tr>
<tr> <td width="265"><div style="text-align:center;">*** T H A N K   Y O U ***</div></td></tr>
</table>
</div>
<DB> 
[DISCOUNTS]
<J00>{CALCULATION NAME}:|{CALCULATION TOTAL}

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

[PAYMENTS]
<J00>{PAYMENT NAME}

[ORDERS]
-- Default format for orders
<div style="font-size:13px;">
<table>
<tr>
<td width="150">{NAME}</td>
<td width="25"><div style="text-align:left;">{QUANTITY}</div></td>
<td width="40"><div style="text-align:right;">{PRICE}</div></td>
<td width="50"><div style="text-align:right;">{TOTAL PRICE}</div></td>
</tr>
</table>
</div>
{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
<L10>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

[ENTITIES:Deliverers]
-- Deliverer entity format
<J00>Deliverer: {ENTITY NAME}

Try printing an actual ticket first. Sometimes notepad won’t work with all templates.

i can help you for this