New Member
Posts: 5
Registered: ‎12-26-2018

Overdue information on invoice template

Good Day for all 

 

on the invoice template i got this variable {{ client.accountOutstanding }}  (Account outstanding (including this invoice) )

 

but i like to know how to reach something like this...

Pending Balance = $80.00 <-- ?? xx how i cant get this?
Current Invoice = $20.00 <- {{ totals.total }}
Total to pay = $100.000 <- this is  {{ client.accountOutstanding }}

 

also y try to get the value subtracting two variables but it´s not possible because the twig variable comes currency formatted.. 

 

 

thanks in advance

 

Ubiquiti Employee
Posts: 3,926
Registered: ‎12-10-2015
Kudos: 1381
Solutions: 299

Re: Overdue information on invoice template

[ Edited ]

@calohk you can use the "raw values":

 

{{ client.accountOutstandingRaw - totals.totalRaw }}
New Member
Posts: 5
Registered: ‎12-26-2018

Re: Overdue information on invoice template

[ Edited ]

Good Day.

 

thanks for your response, but when i put raw variables with or without math operation  ( {{ client.accountOutstandingRaw - totals.totalRaw }} ) it´s come empty or zero on the invocie template.. i´m using version 2.13

 

thanks

Highlighted
Ubiquiti Employee
Posts: 3,926
Registered: ‎12-10-2015
Kudos: 1381
Solutions: 299

Re: Overdue information on invoice template

@calohk you need to update to the latest version 2.14 (or the latest beta version 2.15beta)