Rounding within custom reports

Is there a way I can use Math.round() within the custom report tags?

{REPORT PAYMENT DETAILS:T.TicketNumber,=[T.TotalAmount]-[CA.Discount]-[CA.Round]-[CA.Loyalty Discount], =[T.TotalAmount]-[CA.Discount]-[CA.Round]-[CA.Loyalty Discount],P.Type:Ticket.TicketNumber="$1" AND Ticket.TotalAmount > 0:"{0}",,,,,,,"{1}","{2}","{3}","{4}","{5}","{6}","{7}"}

Try putting it in the format section:

..."[=Math.round({0})]",...

You can also use standard F and TN tags.

2 Likes

You are amazing :heart: