by Mike.Sheen » Thu May 12, 2016 10:26 am
We don't truncate the price - we use Math.Round(Value, DecimalPlaces, MidpointRounding.AwayFromZero)
We calculate the discount amount to the currency decimal places, then subtract that from the price - which is why it appears to be truncated.
3.8% of 127.50 = 4.845. Using our rounding that then turns into 4.85.
127.5 - 4.85 = 122.65
We do it this way because we needed to make the figures reconcile on the screen. If we didn't do it this way, people would ask us why the discount amount on the screen subtracted from the sell price doesn't equal the Ex GST Price.
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution