After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 628903 - Post Bill creates imbalanced transaction caused by rounding error
Post Bill creates imbalanced transaction caused by rounding error
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Business
git-master
Other All
: Normal normal
: ---
Assigned To: Geert Janssens
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2010-09-06 17:27 UTC by Frank H. Ellenberger
Modified: 2018-06-29 22:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
imbalance.png (108.55 KB, image/png)
2010-09-06 17:27 UTC, Frank H. Ellenberger
Details
bill.png (126.11 KB, image/png)
2010-09-06 17:40 UTC, Frank H. Ellenberger
Details

Description Frank H. Ellenberger 2010-09-06 17:27:21 UTC
Created attachment 169593 [details]
imbalance.png

After I posted a bill, I got a imbalanced transaction. It seems, while on the left side each line was rounded to full cent, on the right side, only the result was rounded.
Comment 1 Frank H. Ellenberger 2010-09-06 17:40:45 UTC
Created attachment 169595 [details]
bill.png

This was the bill. You can see, the sum (Summe) is 1 ct to small.

At least in the EC custom declaration, the custom fee (ZollEU) is rounded to full cent and added to the custom value (Zollwert) to calculate the import VAT (EUSt). This again is rounded to full cent and copied to the sum page.

But I believe in every bill/invoice, the printed numbers of each row should sum to the total.
Comment 2 Geert Janssens 2010-09-07 09:32:51 UTC
I suspect I introduced this with r19475, when I fixed another rounding error in function gncEntryGetValue. The problem is likely that some parts of GnuCash expect this function to return rounded results while other parts expect it to return unrounded results.

I'll try to look into this as soon as possible.
Comment 3 Geert Janssens 2010-09-11 09:59:20 UTC
The related bug in my previous comment is bug 504954.

I have reverted the commit that resolved that bug. It appears rounding has some subtle side effects in GnuCash that first have to be more thoroughly investigated. I don't have time for that right now. So until I or someone else finds the time, I prefer not to change things.
Comment 4 John Ralls 2018-06-29 22:44:15 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=628903. Please update any external references or bookmarks.