Luis
06/15/2023, 2:39 PMCD
06/15/2023, 2:50 PMLuis
06/15/2023, 2:52 PMLuis
06/15/2023, 2:53 PMericbirdsall
06/15/2023, 3:34 PMCD
06/15/2023, 3:46 PMericbirdsall
06/15/2023, 3:47 PMDavid B
06/15/2023, 9:50 PMLuis
06/16/2023, 12:17 AMDavid B
06/16/2023, 12:23 AM${totalunapplied?is_number}
Is the error you're getting just "unexpected error" or is there more?
Also, maybe you could share more of the template, like the assign directiveLuis
06/20/2023, 12:53 AMDavid B
06/20/2023, 12:54 AM?is_number
Luis
06/20/2023, 12:55 AMLuis
06/20/2023, 12:55 AMLuis
06/20/2023, 12:57 AMDavid B
06/20/2023, 12:59 AM${totalunapplied}
?
Confirm it's a string with ?is_string
, and then you may need to use ?number?string('0.##')
Luis
06/20/2023, 1:34 AMLuis
06/20/2023, 1:34 AMLuis
06/20/2023, 1:39 AMDavid B
06/20/2023, 2:19 AM<#assign totalunapplied += line.amountremaining?number>
(amount remaining might be coming out as a string)
• change the ?string('0.##')
to ?string['0.##']
. The latter is the newer way, but the former should still be working.David B
06/20/2023, 2:20 AMPWN
07/01/2023, 12:46 PMPWN
07/01/2023, 12:46 PMPWN
07/01/2023, 12:57 PM<#if item.rate?has_content>${item.rate}<#else><#assign zero=0.00>${zero?string.currency}</#if>