Invoice print change due

Hi
my invoice template show the change due amount but not appear on printed bill

my template here is:
[LAYOUT]
– General layout

<div style="text-align:Center">
<BMP>U:\logo.bmp

 <F>--
 <T>Invoice
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<L00>Table:{ENTITY NAME:Indoor Tables}
<L00>Table:{ENTITY NAME:Bar}
<L00>Table:{ENTITY NAME:Rooftop Tables}

<F>--

-- General layout


{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<J10>Tendered:|{TENDERED TOTAL}
<J10>change:|{CHANGE TOTAL}
<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>-{NAME}|{QUANTITY} * |{TOTAL PRICE} 


[ORDERS:Gift]
-- Format for gifted orders
<J00>-  {NAME}|**GIFT** {QUANTITY}


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

[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
 </div>

bill%20printed

Have never used {CHANGE TOTAL}, it is a ticket expression so should be ok there. Just tested on my dev machine and the expression works.
However its hard to say for sure without seeing full template.
What version are you using?

did you mean sambapos ver
its V5 pro licences

the template preview its show the change due
but on hard copy bill printed not appear

Is it up to date? Check version number by restoring screen (double clicking on top left samba logo while logged in as admin) and version number is in window header

Try putting the tag under PAYMENTS format in template?

The version is 5.2.22

NM ignore what I said it should work where you have it.

I just tested it on the latest version of SambaPOS and it works fine.

image

Worked for me to, there must be something else.
When is the print being triggered? Maybe its before change is calculated?.!?

Good call it could be printing too soon.

How can i check that

What rule is your print action in?

ACM auto print rule for cash

Hmmm, never done much in AMC rule like that.
All my similar rules are on payment processed event seperate for actual payment action since there are multiple routes to pay. Ie your method wouldn’t print from payment screen.

So what i have to do

Try moving the print action to a new payment processed rule.
Or test by opening a past ticket with change and printing it.

Ok what i should add in rule for change

Take the print action out of your AMC rule and either make a new rule with payment processed event or if you have an open drawer rule or similar already on payment processed add it there instead.

Or like I said just test the template by printing an old ticket from ticket list of a ticket which had change first. That will show its the event timing you have used rather than your template.

Its working on print old tickek

So it’s you timing triggering print from AMC - it’s printing before change is calculated.
So move the print command to a payment processed rule. You can add constraint to type = cash if you want or leave it and will print on card too.