Ticket Template Calculation problem

Hello,

I have some trouble with my printing template.
The print job is send by an automation command on my entity screen.

Everything work well but the calculation is not working…

<T>Waiter Report
<J00>Date:|{DATE}
<J00>Server:|{SETTING:CURRENTUSER}
<F>-
<J00>TOTAL:|{REPORT PAYMENT TOTAL:(TU={SETTING:CURRENTUSER})}
<J00>C.C: |{REPORT PAYMENT TOTAL:(PT=Credit Card) AND (TU={SETTING:CURRENTUSER})}
<J00>Cash:|{REPORT PAYMENT TOTAL:(PT=Cash) AND (TU={SETTING:CURRENTUSER})} 
<J00>G.C:|{REPORT PAYMENT TOTAL:(PT=Gift Card) AND (TU={SETTING:CURRENTUSER})} 
<J00>Tips:|{REPORT CALCULATION TOTAL:(CT=Tip) AND (TU={SETTING:CURRENTUSER})}
<J00>Test[=1+2]
<J00>Caisse:|[=F(TN('{REPORT PAYMENT TOTAL:(PT=Cash) AND (TU={SETTING:CURRENTUSER})}')-TN('{REPORT CALCULATION TOTAL:(CT=Tip) AND (TU={SETTING:CURRENTUSER})}'),'0.00')]

Ticket:

What am I doing wrong?

Your template seems fine. How did you prepared template? How you’re printing it? Did you tested it with demo printer? Are you using latest version?

I’m using the last version 4.82
For the template, I’ve create a print job, clone from the original ticket template.
I’m printing with an automation command button place on one of my entity screen.
Automation command don’t have mapping.

The weird things is if I use this template instate of the ticket template, it’s working.
It’s seems the problem appear because I don’t send the print job from one ticket but directly from my button on the screen.
If you need, I will post some screenshot tomorrow.

Thank You

Better try preparing it as a custom report and print it with Print Custom Report action. You can use report tags inside ticket printer templates however that may skip some features if there is no actual ticket.