fix: reconciled advance payment shows up in reconciliation tool under invoices #43396
+564
−53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Book Advance Payments in Separate Party Account
Advance Payment shows up under 'Invoices' section in Payment Reconciliation tool.
Root cause
GL entries for Advance payment
against_voucher
field is referring Purchase Order.Upon reconciliation
For
Advance Paid
account,Against Voucher
is still referencing Purchase Order. This cause it to be incorrectly identified as an Invoice.For a normal Payment, since the amount stays within the same account, this wasn't an issue. But for Advance Payments (
Book Advance Payments in Separate Party Account
), amount moves from one account to another upon reconciliation. But, during this original two rows are untouched.Fix
For Payment Entries, don't post references to Sales / Purchase Order in Ledger, as they anyways have no impact on Ledger.
Todo
Advance Paid
for Sales / Purchase Order directly from Payment Entry References or Journal referencesAdvance as a Liability
enabled.