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

Cancelled payment entry shows up in AP/AR #43326

Open
Vigneshsekar opened this issue Sep 23, 2024 · 0 comments
Open

Cancelled payment entry shows up in AP/AR #43326

Vigneshsekar opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels

Comments

@Vigneshsekar
Copy link
Contributor

Vigneshsekar commented Sep 23, 2024

Information about bug

Steps to reproduce:

  • Create a payment entry and add sales invoices and credit notes in references.
  • Submit the payment entry.
  • Unreconcile the credit note referenced in the payment entry using Unreconcile Payment
  • With that, the unallocated amount in the payment entry is not appropriately updated.
  • Now, cancel the payment entry.
  • In the payment ledger entry, the amount corresponding to the credit note is not delinked
  • So, it shows up in the AR.
  • The same applies to the purchase cycle and AP.

set_unallocated_amount doesn't handle this case and checks for this specifically and skips it.

Internal ticket reference: 19990

Module

accounts

Version

ERPNext Version - From V14 to develop

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

No response

@ruthra-kumar ruthra-kumar self-assigned this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants