Need support to fix my printing template

Dears,

appreciating your urgent support to fix my template.

the issue is to add the total amount before discount

my layout
NKAHAT Resturant

        Samtah, Le Le Mall            
        Phone: 0500581579             
                                      
     Email: nkahat@gmail.com          

Date: 9/24/2015 TICKET NO: 74
Time: 8:31 AM Sales Rep: Administrator

        Customer: ALABBAS             

Items                  QUANTITY x PRICE

PIZZA CHICKEN.SMALL 3 x 13.00

  • VIP Discount 1

Sufflee 1 x 8.00

Donuts 1 x 3.00

  • VIP Discount 1

------------- Total Before Discount ---------
Total Amount: 43.00
-------------------- Gift -------------------
Total Gift: 0.00
------------------ Discount -----------------
VIP Discounts: 7.00
Happy Hour Discounts: 0.00
Other Discounts: 0.00

Total Discounts: 7.00

------------------ Total --------------------

Total $ 43.00
----------------- Payment -------------------

Paid $50.00
Change $7.00


        T H A N K   Y O U             
                                      
   fOLLOW US ON TWITTER @NKAHAT    

the template

[LAYOUT]
– General layout

NKAHAT Resturant

Samtah, Le Le Mall
Phone: 0500581579


Email: nkahat@gmail.com

Date: {TICKET DATE}| TICKET NO:| {TICKET NO}
Time: {TIME}|Sales Rep: {USER NAME}

{ENTITIES}
---------------------------------------------
Items QUANTITY x PRICE
---------------------------------------------

{ORDERS}
[------------------ Notes -------------------

{NOTE}
]
------------- Total Before Discount ---------
Total Amount: {TOTAL PRICE}
-------------------- Gift -------------------
Total Gift:|{ORDER STATE TOTAL:Gift}
------------------ Discount -----------------
{DISCOUNTS}
VIP Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:VIP Discount}’)))]
Happy Hour Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:HH Discount}’)))]
Other Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:Discount}’)))]


Total Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:Discount}’)+TN(’{ORDER TAG TOTAL:VIP Discount}’)+TN(’{ORDER TAG TOTAL:HH Discount}’))+TN(’{ORDER STATE TOTAL:Gift}’))]


------------------ Total --------------------


Total | $ {TICKET TOTAL}

----------------- Payment -------------------

Paid | ${TENDERED TOTAL}
Change | ${CHANGE TOTAL}

---------------------------------------------
T H A N K Y O U

fOLLOW US ON TWITTER @NKAHAT

[DISCOUNTS]
{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[PAYMENTS]
{PAYMENT NAME}|${PAYMENT AMOUNT}

[ORDERS]
– Default format for orders
{NAME} | {QUANTITY} x {PRICE}
{ORDER TAGS}
– - {QUANTITY} {NAME}|{TOTAL PRICE}

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

[DISCOUNTS]
{CALCULATION NAME}[=F(’{CALCULATION AMOUNT}’)]|{CALCULATION TOTAL}

[ORDERS:Void]
– Nothing will print for void lines

[ORDER TAGS]
– Format for order tags

  • {ORDER TAG NAME}

[ENTITIES:Customer]
– Customer entity format
Customer: {ENTITY NAME}
– Balance: $[=F(0-TN(’{ENTITY BALANCE}’))]

Try this {PLAIN TOTAL}

thanks i try but did not work

Where did you try it.? Also you have two Discounts layout sections you should only have one.

1 Like

Hello Kendash,

thanks for your reply and continues support and help.

i remove the dublicated layout but with no result.

please check my template and please advice me to the needed change

  • List item

    [LAYOUT]
    – General layout

    NKAHAT Resturant

    Samtah, Le Le Mall
    Phone: 0500581579


    Email: nkahat@gmail.com

    Date: {TICKET DATE}| TICKET NO:| {TICKET NO}
    Time: {TIME}|Sales Rep: {USER NAME}

    {ENTITIES}
    ---------------------------------------------
    Items QUANTITY x PRICE
    ---------------------------------------------

    {ORDERS}
    [------------------ Notes -------------------

    {NOTE}
    ]
    ------------- Total Before Discount ---------

    Total Amount: |{PLAIN TOTAL}

    -------------------- Gift -------------------
    Total Gift:|{ORDER STATE TOTAL:Gift}
    ------------------ Discount -----------------
    {DISCOUNTS}
    VIP Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:VIP Discount}’)))]
    Happy Hour Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:HH Discount}’)))]
    Other Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:Discount}’)))]


    Total Discounts:|[=F(-1*(TN(’{ORDER TAG TOTAL:Discount}’)+TN(’{ORDER TAG TOTAL:VIP Discount}’)+TN(’{ORDER TAG TOTAL:HH Discount}’))+TN(’{ORDER STATE TOTAL:Gift}’))]


    ------------------ Total --------------------


    Total | $ {TICKET TOTAL}


    ----------------- Payment -------------------

    Paid | ${TENDERED TOTAL}
    Change | ${CHANGE TOTAL}

    ---------------------------------------------
    T H A N K Y O U

    fOLLOW US ON TWITTER @NKAHAT

    [PAYMENTS]
    {PAYMENT NAME}|${PAYMENT AMOUNT}

    [ORDERS]
    – Default format for orders
    {NAME} | {QUANTITY} x {PRICE}
    {ORDER TAGS}
    – - {QUANTITY} {NAME}|{TOTAL PRICE}

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

    [DISCOUNTS]
    {CALCULATION NAME}[=F(’{CALCULATION AMOUNT}’)]|{CALCULATION TOTAL}

    [ORDERS:Void]
    – Nothing will print for void lines

    [ORDER TAGS]
    – Format for order tags

    • {ORDER TAG NAME}

    [ENTITIES:Customer]
    – Customer entity format
    Customer: {ENTITY NAME}
    – Balance: $[=F(0-TN(’{ENTITY BALANCE}’))]

example print:

         NKAHAT Resturant             
                                      
        Samtah, Le Le Mall            
        Phone: 0500581579             
                                      
     Email: nkahat@gmail.com          

Date: 9/24/2015 TICKET NO: 87
Time: 6:07 PM Sales Rep: Administrator

        Customer: ALABBAS             

Items                  QUANTITY x PRICE

PIZZA CHICKEN.SMALL 3 x 13.00

  • VIP Discount 1

------------- Total Before Discount ---------

Total Amount:

-------------------- Gift -------------------
Total Gift: 0.00
------------------ Discount -----------------
VIP Discounts: 6.00
Happy Hour Discounts: 0.00
Other Discounts: 0.00

Total Discounts: 6.00

------------------ Total --------------------

Total $ 33.00

----------------- Payment -------------------

Paid $50.00
Change $17.00


        T H A N K   Y O U             
                                      
   fOLLOW US ON TWITTER @NKAHAT

When you post a template in forum please highlight it and press the </> button so it formats correctly.

EDIT: It seems your not using any formatting even though your using [Layout]

You should use formatting like here is an example:

[LAYOUT]

-- General layout

<T>Ticket

<L00>Date:{TICKET DATE}

<L00>Time:{TIME}

{ENTITIES}

<L00>Ticket No:{TICKET NO}

<F>-

{ORDERS}

<F>=

<EB>

{DISCOUNTS}

[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]

{SERVICES}

<J10>Total:|{TICKET TOTAL}

{PAYMENTS}

<DB>

<F>=

<C10>T H A N K   Y O U



[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}

sure, thanks

this is my template:

[LAYOUT]
-- General layout
<EB>
<C00>NKAHAT Resturant
<L>
<C00>Samtah, Le Le Mall
<C00>Phone: 0500581579
<DB>
<L>
<C00>Email: nkahat@gmail.com
<L>
<J00>Date: {TICKET DATE}| TICKET NO:| {TICKET NO}
<J00>Time: {TIME}|Sales Rep: {USER NAME}
<L>
{ENTITIES}
<L00>--------------------------------------------- 
<L00>    Items                  QUANTITY x PRICE
<L00>---------------------------------------------
<L>
{ORDERS}
[<L00>------------------ Notes -------------------
<L>
{NOTE}
<L>]
<L00>------------- Total Before Discount ---------
<L>
<J00>Total Amount: |{PLAIN TOTAL}
<L>
<L00>-------------------- Gift -------------------
<J00>Total Gift:|{ORDER STATE TOTAL:Gift}
<L00>------------------ Discount -----------------
{DISCOUNTS}
<J00>VIP Discounts:|[=F(-1*(TN('{ORDER TAG TOTAL:VIP Discount}')))]
<J00>Happy Hour Discounts:|[=F(-1*(TN('{ORDER TAG TOTAL:HH Discount}')))]
<J00>Other Discounts:|[=F(-1*(TN('{ORDER TAG TOTAL:Discount}')))]
<L00>
<EB>
<J00>Total Discounts:|[=F(-1*(TN('{ORDER TAG TOTAL:Discount}')+TN('{ORDER TAG TOTAL:VIP Discount}')+TN('{ORDER TAG TOTAL:HH Discount}'))+TN('{ORDER STATE TOTAL:Gift}'))]
<L>
<DB>
<L00>------------------ Total --------------------
<EB>
<L>
<J00>Total | $ {TICKET TOTAL}
<L>
<DB>
<L00>----------------- Payment -------------------
<L>
<J00>Paid | ${TENDERED TOTAL}
<J00>Change | ${CHANGE TOTAL}
<L>
<L00>---------------------------------------------
<C10>T H A N K   Y O U
<L>
<C00>fOLLOW US ON TWITTER @NKAHAT


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

[ORDERS]
-- Default format for orders
<J00>{NAME} | {QUANTITY} x {PRICE}
<J00>{ORDER TAGS}
-- <J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
<L>

[ORDERS:Gift]
-- Format for gifted orders
<L00>{NAME}
<R00>{QUANTITY}x *GIFT*
{ORDER TAGS}
<L>

[DISCOUNTS]
<J00>{CALCULATION NAME}[=F('{CALCULATION AMOUNT}')]|{CALCULATION TOTAL}

[ORDERS:Void]
-- Nothing will print for void lines

[ORDER TAGS]
-- Format for order tags
* {ORDER TAG NAME}

[ENTITIES:Customer]
-- Customer entity format
<C00>Customer: {ENTITY NAME}
-- <C00>Balance: $[=F(0-TN('{ENTITY BALANCE}'))]
<L>

LOL ok so you were using formatting you just omitted that?

nevermind I was confused ok let me look at it.

and this is my sample print

             NKAHAT Resturant             
                                          
            Samtah, Le Le Mall            
            Phone: 0500581579             
                                          
         Email: nkahat@gmail.com          
                                          
Date: 9/24/2015              TICKET NO: 87
Time: 6:07 PM     Sales Rep: Administrator
                                          
            Customer: ALABBAS             
                                          
---------------------------------------------
    Items                  QUANTITY x PRICE
---------------------------------------------
                                          
PIZZA CHICKEN.SMALL              3 x 13.00
* VIP Discount 1
                                          
------------- Total Before Discount ---------
                                          
Total Amount:                             
                                          
-------------------- Gift -------------------
Total Gift:                           0.00
------------------ Discount -----------------
VIP Discounts:                        6.00
Happy Hour Discounts:                 0.00
Other Discounts:                      0.00
                                          
Total Discounts:                      6.00
                                          
------------------ Total --------------------
                                          
Total                              $ 33.00
                                          
----------------- Payment -------------------
                                          
Paid                                $50.00
Change                              $17.00
                                          
---------------------------------------------
            T H A N K   Y O U             
                                          
       fOLLOW US ON TWITTER @NKAHAT

appreciated king :smile: Kendash

So I dont see {PLAIN TOTAL} anywhere in it… where did you try it at?

please check this part

<L00>------------- Total Before Discount ---------
<L>
<J00>Total Amount: |{PLAIN TOTAL}
<L>

I see it now. sorry.

Plain total will not work because the discount is order tag not calculation type.
You need to add total discount to plain total.

1 Like

sukasem is correct. Also you are using two formatting tags… <L> and <J00>

i’m looking for the total before the discounts???

please help me to fix if it possible

Get rid of the tags on this

<L>
<J00>Total Amount: |{PLAIN TOTAL}
<L>

just use <L>Total Amount: |{PLAIN TOTAL}

Get that to print first… then you simply add your order tags discounts to Plain total using expression.

In fact you need to go through your entire template and clean it up. You have a lot of extra formatting tags. examples

<L>]
<L00>------------- Total Before Discount ---------
<L>