Help with ticket and "[ ]" line

guys, I am having a hard time NOT printing the “SUBOTOTAL” line…

The problem seems to be in the tickets that do not have a “TAXA DE ENTREGA” calculation…

When I put any “TAXA DE ENTREGA” the subtotal appears OK

Thanks!!!

G.

This has been an issue before.

Emre is including in the next update the ability to do this:

[<J00>Subtotal:| R$ [{PLAIN TOTAL}]]

The inner-most part [{PLAIN TOTAL}] defines the value to check, while the outer [brackets] define what to skip in the print, based on the evaluation of the inner brackets.

You could also try something like this:

[<J00>Subtotal:| R$ [=TN('{PLAIN TOTAL}')]]

Or maybe this:

<J00>[=TN('{PLAIN TOTAL}') > 0 ? 'Subtotal:| R$ {PLAIN TOTAL}' : '']

this

[<F>-
<J00>Subtotal:| R$ [=TN('{PLAIN TOTAL}')]]

worked perfectly!!

Thanks!!!

G

But my real question is why {PLAIN TOTAL} is cero if there is no CALCULATION in the ticket. should it be cero or should it be TOTAL ?

thanks!!!

G.

I am having this problem. I need to print the subtotal meaning no taxes no tips no etc. Plain Total prints zero when the bill is printed.

Can you show template and print please.

[LAYOUT]
– General layout
Customer Receipt

Ticket No:{TICKET ID}
Order No:{TICKET NO}
COROZO BLUE’S
COROZAL TOWN, TIN#78123

{TICKET TAG:Service Type} {TICKET DATE}
{TIME}

{ENTITIES}

Table:{ENTITY NAME:Table}

-
{ORDERS}
-

Order Totals: -- Subtotal (Total of the order items without tax) Subtotal:| [=F(TN('{TICKET TOTAL}')-TN('{TAX TOTAL}')-TN('{SERVICE TOTAL}'))] {TAXES}

– Total with Tax (No tips or discounts should be included)
Total:|[=F(TN(’{TICKET TOTAL}’)-TN(’{SERVICE TOTAL}’))]

Ticket Totals: Total:|{TICKET TOTAL}

{DISCOUNTS}

{SERVICES}

Net Total:|[={TICKET TOTAL} + {DISCOUNT TOTAL} + {SERVICE TOTAL}]

{PAYMENTS}

Server:{USER NAME}
We value your comments!
(501)422-0090

THANK YOU FOR VISITING! HOPE YOU ENJOYED!

[DISCOUNTS]
{CALCULATION NAME} %{CALCULATION AMOUNT}:|{CALCULATION TOTAL}
Discounted Total:|[={TICKET TOTAL} + {CALCULATION TOTAL}]

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

[PAYMENTS]

Payments Totals:

{PAYMENT NAME}:|{PAYMENT AMOUNT}
Change:|{CHANGE TOTAL}
-

[ORDERS]
– Default format for orders
- {QUANTITY} {NAME}|[=F(TN(’{TOTAL PRICE}’) * 8/9)]

{ORDER TAGS}
[ORDERS:Gift]
– Format for gifted orders
- {QUANTITY} {NAME}|GIFT

[TAXES]
– Taxes format
Tax:|{TAX AMOUNT}

[ORDERS:Void]
– Nothing will print for void lines
VOID {QUANTITY} {NAME}

[ORDER TAGS]
– Format for order tags
* {ORDER TAG NAME} | {ORDER TAG PRICE}

[ENTITIES:Customer]
– Customer entity format
Customer:{ENTITY DATA:Name} Phone:{ENTITY NAME}
Address:{ENTITY DATA:Address}

you should highlight and clock the code button on forum toolbar to treat as code as will strip code.

I cant see plain total there…