MT#10061 Fix rounding for invoices.

(cherry picked from commit 4ffac12e4728ce506f48015500e217a9838f3b4b)
(cherry picked from commit e611b2487f3d76ee5f7de536a1b3069f9532ec73)