fix: allow to cancel loan with cancelled replayment entry (#25508)

This commit is contained in:
Afshan 2021-04-30 18:40:43 +05:30 committed by GitHub
parent a19c6a9278
commit 5a4615fd4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ class Loan(AccountsController):
def on_cancel(self):
self.unlink_loan_security_pledge()
self.ignore_linked_doctypes = ['GL Entry']
def set_missing_fields(self):
if not self.company:
@ -359,4 +360,4 @@ def get_shortfall_applicants():
return {
"value": len(applicants),
"fieldtype": "Int"
}
}