Code: Select all
#set( $balance = $order.Items.TotalPriceById() - $order.Payments.Total(true) )
.
.
.
$balance.ToString("C")
According to the nVelocity site, math should be possible. Although there is a vague reference to only working with integer values...is that the problem?
If so, how can we determine the actual order balance, including applying any payments, within an email template?