dennysutanto
02/14/2025, 9:20 AMCeligo AI
02/14/2025, 9:20 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that when you perform calculations in an Advanced PDF for currency, the output is not treated as currency anymore. To retain or cast the calculation result as currency, you can use the
?string.currency
Freemarker built-in function. This function formats the number as a currency amount.
Here is an example of how you can use it:
code
${(-record.discountrate * record.subtotal)?string.currency}
In this example, the calculation -record.discountrate * record.subtotal
is performed and the result is formatted as a currency using ?string.currency
.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/14/2025, 9:21 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.791688
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.78904146
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.787573338
Celigo AI
02/14/2025, 9:21 AM