GnuCash
Contact   Instructions
Bug 796766 - Credit note creating "imbalance" with wrong entries
Summary: Credit note creating "imbalance" with wrong entries
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Business (show other bugs)
Version: 3.2
Hardware: PC Linux
: High major
Target Milestone: ---
Assignee: Geert Janssens
QA Contact: core
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-16 01:39 EDT by Amm
Modified: 2018-08-06 07:31 EDT (History)
5 users (show)

See Also:


Attachments
Credit note entries (166.35 KB, image/jpeg)
2018-07-16 01:39 EDT, Amm
no flags Details
Credir note post box (40.01 KB, image/jpeg)
2018-07-16 01:40 EDT, Amm
no flags Details
Imbalance created with Receivables on incorrect side (143.35 KB, image/jpeg)
2018-07-16 01:41 EDT, Amm
no flags Details
Invoice instead of Credit note and all is fine (137.65 KB, image/jpeg)
2018-07-18 01:33 EDT, Amm
no flags Details

Description Amm 2018-07-16 01:39:55 EDT
Created attachment 372921 [details]
Credit note entries

I am trying to post a credit note for goods returned by a customer. But its creating unexpected "Imbalance" entry as well as not reversing "Receivables" correctly.

Please see images attached along with following description

Image 1 - cn-entry.jpg
Its showing creation of credit note and entries that I have made.
Type shown on top-left is "Credit Note"

Image 2 - cn-post.jpg
Its showing posting of Credit note (Box shows it as Invoice though)
Posting account is to Receivables:GST account (same account where original Invoice was posted - so that it gets reversed in credit note)

Image 3 - cn-imbalance.jpg
Here there are 2-3 issues.
1) Receivables:GST is increased instead of being decreased
2) Tax liability (GST) is increased instead of being decreased
3) Income and Round off are shown correctly though.
4) Imbalance entry created by GnuCash.

So it appears to be some kind of bug.

Please check.
Comment 1 Amm 2018-07-16 01:40:44 EDT
Created attachment 372922 [details]
Credir note post box
Comment 2 Amm 2018-07-16 01:41:31 EDT
Created attachment 372923 [details]
Imbalance created with Receivables on incorrect side
Comment 3 Amm 2018-07-18 01:33:37 EDT
Created attachment 372924 [details]
Invoice instead of Credit note and all is fine

See attachment - invoice-cn-imbalance.jpg

If I create exact same entries for an "Invoice" (instead of Credit note) everything is working just as expected. i.e. no imbalance and no wrong sides for "Receivables" or "Tax"
Comment 4 Amm 2018-07-18 01:35:33 EDT
I believe this is serious bug as Credit note generation is failing completely. And all the "Accounting" goes wrong.
Comment 5 Geert Janssens 2018-08-05 12:06:49 EDT
Confirmed.

I have also found the root cause and prepared a fix. As soon as I have added a test case I'll commit this for inclusion in gnucash 3.3.
Comment 6 Geert Janssens 2018-08-06 07:31:43 EDT
I have just pushed the fix including a regression test to maint. So this fix will appear in gnucash 3.3.

If you want this earlier, you may attempt a build from scratch yourself starting from the current maint branch.

Note You need to log in before you can comment on or make changes to this bug.