Skip to content
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

fix: skip payments against orders in AP / AR #37284

Closed

Conversation

GursheenK
Copy link
Member

Problem
Currently, when a Payment Entry is created against a Purchase / Sales Order, the corresponding Payment Ledger Entry gets fetched in the Accounts Payable / Receivable Report. However, since there are no PLEs made against the order, the outstanding total of the order never gets added to the AP / AR total. But the payment amount against that order gets deducted from the AP / AR total. This leads to an incorrect total amount.

Example

Suppose a Purchase Order is created with a total amount of ₹1000. And a Payment Entry is created against the PO for ₹300. The Accounts Payable Report shows the following entries -

Screenshot 2023-09-28 at 12 08 36 PM

₹300 was reduced from the total Payable amount although the Purchase Order total was never added since no Payment Ledger Entries exist against it.


Solution
Skip PLEs made against Orders in the query for AP / AR Report.

no-docs

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Sep 28, 2023
@GursheenK GursheenK added the backport version-14-hotfix backport to version 14 label Sep 28, 2023
@GursheenK GursheenK closed this Sep 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant