erpnext icon indicating copy to clipboard operation
erpnext copied to clipboard

fix(general-ledger): hide zero effect rows

Open rtdany10 opened this issue 9 months ago • 13 comments

Create a sales invoice and a credit note (unrelated ones) Reconcile both and check the ledger with Show Net Values in Party Account checked

Before: image

After: image

rtdany10 avatar May 10 '24 14:05 rtdany10

@deepeshgarg007 @ruthra-kumar

rtdany10 avatar May 22 '24 08:05 rtdany10

This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

stale[bot] avatar Jun 24 '24 04:06 stale[bot]

@rohitwaghchaure please review

rtdany10 avatar Jun 24 '24 04:06 rtdany10

This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

stale[bot] avatar Jul 09 '24 23:07 stale[bot]

I faced this same issue today. In my opinion, creation of additional Journal Entry should be avoided if possible on payment reconciliation where it's possible. Journal Entry every time to reconcile is overkill.

It created a new journal entry for reconciling invoice with other journal entry in my scenario.

vorasmit avatar Jul 10 '24 10:07 vorasmit

Journal Entry every time to reconcile is overkill.

This is very true. Also, we often have a hard time convincing users about these system generated JVs and the impact it brings on the general ledger report. Often customers/suppliers can't compare our statement with their ones cause of these extra entries.

rtdany10 avatar Jul 10 '24 10:07 rtdany10

Create a sales invoice and a credit note (unrelated ones) Reconcile both and check the ledger with Show Net Values in Party Account checked

Before: image

After: image

@rtdany10 In the before screenshot, is the Sales Invoice and Return made in company currency or in a foreign currency?

ruthra-kumar avatar Jul 12 '24 08:07 ruthra-kumar

It created a new journal entry for reconciling invoice with other journal entry in my scenario.

@vorasmit That shouldn't be the case. Are the invoice and journal in company currency or foreign currency?

ruthra-kumar avatar Jul 12 '24 08:07 ruthra-kumar

@ruthra-kumar, I'll dig deeper. Actually it's run programmatically in my case. Thank you for the pointers.

vorasmit avatar Jul 12 '24 09:07 vorasmit

I did a retest and have come up with a way to replicate the issue. Reported here: https://github.com/frappe/erpnext/issues/42302

vorasmit avatar Jul 12 '24 09:07 vorasmit

@rtdany10 In the before screenshot, is the Sales Invoice and Return made in company currency or in a foreign currency?

In company currency itself.

rtdany10 avatar Jul 12 '24 11:07 rtdany10

@rtdany10 In the before screenshot, is the Sales Invoice and Return made in company currency or in a foreign currency?

In company currency itself.

In that case, that Journal itself looks invalid. It is supposed to have values in Debit and Credit. From the screenshot, it doesn't look like it.

Is this replicable?

ruthra-kumar avatar Jul 12 '24 11:07 ruthra-kumar

@rtdany10 In the before screenshot, is the Sales Invoice and Return made in company currency or in a foreign currency?

In company currency itself.

In that case, that Journal itself looks invalid. It is supposed to have values in Debit and Credit. From the screenshot, it doesn't look like it.

Is this replicable?

The journal has values, but when you tick "Show Net Value in Party Account" checkbox in the filters, it will show zero

rtdany10 avatar Jul 12 '24 11:07 rtdany10

This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

stale[bot] avatar Aug 04 '24 19:08 stale[bot]

@ruthra-kumar please check

rtdany10 avatar Aug 08 '24 10:08 rtdany10

@ruthra-kumar please check

System generated Credit / Debit Journals are the ones that primarily have net effect of '0'. There is a new checkbox - 'Ignore System Generated Credit / Debit Notes', added specifically to ignore them on General Ledger, which will handle the above case.

@rtdany10 Do you still need this change?

ruthra-kumar avatar Aug 09 '24 07:08 ruthra-kumar

That should take care of it then, thanks!

rtdany10 avatar Aug 10 '24 04:08 rtdany10