-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: cr/dr note should be standalone even when created from another invoice #35330
refactor: cr/dr note should be standalone even when created from another invoice #35330
Conversation
351c987
to
e75f60c
Compare
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. |
e75f60c
to
227677e
Compare
Hi Ruthra, I wanted to review this and here's what I did:
I observed two things:
|
@barredterra Thanks for reviewing this. Due to other priority tasks, this change has been in the backburner. Will revist it probably by this weekend.
No. But, I think this can addressed. Most probably some refactor required in the
I did notice this when I initially made the change. Payment Reconciliation tool filters Cr/Dr Notes that have its erpnext/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py Lines 176 to 178 in b4db5e9
|
Linking this discussion her, for reference: #36170 |
@ruthra-kumar I think #36049 needs to ship with this PR. Without it, the negative outstanding won't be reconcilable via Payment Reconciliation |
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. |
227677e
to
f6e4ac2
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #35330 +/- ##
===========================================
+ Coverage 64.70% 65.19% +0.49%
===========================================
Files 791 792 +1
Lines 61572 61854 +282
===========================================
+ Hits 39838 40327 +489
+ Misses 21734 21527 -207
|
PR is in working state now. Changes to existing design:
|
@dj12djdjs Due to
Invoice will not have -ve outstanding and will not be reported by reconciliation tool. Rather the Cr/Dr note will show up there. |
With this change, we might be breaking the requirement for this status. An Invoice requires,
to get Due to,
[1] will not be met, so We can simply remove [1] from the requirement, then it breaks the users expection that if Credit note is issued, then outstanding will be -ve. But, i think this is unavoidable and should be expected going forward. Thoughts? |
Makes sense 👍 |
…-35330 refactor: cr/dr note should be standalone even when created from another invoice (backport #35330)
Credit/Debit Notes should post ledger against itself(standalone), even if they are created against a parent invoice. This way, they can be reconciled against a different invoice from same customer/supplier.