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

Payment Entry Cleared with Incorrect Date (Sales Invoice Date Instead of Current Date) #44118

Open
parasonit opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels

Comments

@parasonit
Copy link

Information about bug

We have posted a payment entry on 20-09-2024 and a sales invoice on 05-10-24, the system is incorrectly using the sales invoice date for the clearing process, rather than the current date or the user-defined date.
Steps to Reproduce:

  1. Create a Payment Entry on 20-09-24.
    image
  2. Create a Sales Invoice on 05-10-24
    image
  3. Attempt to clear the payment entry by linking it to the sales invoice.
  4. The system picks the sales invoice date (05-10-24) for the clearing entry, instead of using the current date(13-11-24) or the date specified by the user.
    image

Expected Result: The clearing process should use the current date or a date that is manually selected by the user for the clearing, not the sales invoice date.

Actual Result: The system automatically uses the sales invoice date for the clearing process. This is resulting in incorrect accounting process.

Suggested Fix: Modify the logic to ensure that the date used for the clearing process is either the current date or a user-defined date, rather than defaulting to the sales invoice date.
@ruth

Module

accounts

Version

ERPNext: v15.38.4 (version-15)

Frappe Framework: v15.35.0 (version-15)

Installation method

None

Relevant log output / Stack trace / Full Error Message.

No response

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