[kmymoney4] [Bug 383239] Automatic VAT split causes offset due to rounding error

Thomas Baumgart bugzilla_noreply at kde.org
Mon Aug 7 15:53:54 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=383239

Thomas Baumgart <tbaumgart at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |CONFIRMED

--- Comment #1 from Thomas Baumgart <tbaumgart at kde.org> ---
The problem stems from the internal calculation of the tax part. It is always
calculated by subtracting the net value from the gross value. The problem is,
that it does not adjust the net value to the rounded one before doing the
subtraction. This in fact leaves the tax part as 2.855 in your example which is
then rounded again.

It should round 14.225 to 14.22 and then doing the subtraction to 17.07-14.22
which results in 2.85 and everyone is happy. Hey, you found a bug!  And a
rather old one: it lives there for more than 10 years now. Congrats.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list