fix: allow to cancel loan with cancelled replayment entry
This commit is contained in:
parent
3b1ae4eb90
commit
ab052599c0
@ -44,6 +44,7 @@ class Loan(AccountsController):
|
|||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
self.unlink_loan_security_pledge()
|
self.unlink_loan_security_pledge()
|
||||||
|
self.ignore_linked_doctypes = ['GL Entry']
|
||||||
|
|
||||||
def set_missing_fields(self):
|
def set_missing_fields(self):
|
||||||
if not self.company:
|
if not self.company:
|
||||||
@ -359,4 +360,4 @@ def get_shortfall_applicants():
|
|||||||
return {
|
return {
|
||||||
"value": len(applicants),
|
"value": len(applicants),
|
||||||
"fieldtype": "Int"
|
"fieldtype": "Int"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user