You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
Code of Conduct
The text was updated successfully, but these errors were encountered: