MT#10061 Fix rounding for invoices.

(cherry picked from commit 4ffac12e4728ce506f48015500e217a9838f3b4b)