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.
Created attachment 372922 [details] Credir note post box
Created attachment 372923 [details] Imbalance created with Receivables on incorrect side
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"
I believe this is serious bug as Credit note generation is failing completely. And all the "Accounting" goes wrong.
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.
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.