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

Error on saving Loan Restructure: Restructure Date cannot be before last charge date None #190

Open
1 task done
mubi64 opened this issue Jun 7, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@mubi64
Copy link

mubi64 commented Jun 7, 2024

Information about bug

The loan is to employee and it is giving this error on creating loan restructure: Restructure Date cannot be before last charge date None

The error is in this function:

def validate_against_charge_date(self):

where it is taking last_charge_date from the sales invoice.

Module

Loan Management

Version

ERPNext: v15.21.2
Frappe Framework: v15.17.0
Frappe HR: v15.14.2
Frappe Lending: v0.0.1

Installation method

None

Relevant log output / Stack trace / Full Error Message.

File "apps/lending/lending/loan_management/doctype/loan_restructure/loan_restructure.py", line 26, in validate
    self.validate_against_charge_date()
  File "apps/lending/lending/loan_management/doctype/loan_restructure/loan_restructure.py", line 51, in validate_against_charge_date
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 600, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 565, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 516, in _raise_exception
    raise exc
frappe.exceptions.ValidationError: Restructure Date cannot be before last charge date None

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mubi64 mubi64 added the bug Something isn't working label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant