Traceback (most recent call last):
File “/home/<>/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
response = frappe.api.handle()
File "/home/<>/frappe-bench/apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “/home/<>/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
data = execute_cmd(cmd)
File "/home/<>/frappe-bench/apps/frappe/frappe/handler.py”, line 61, in execute_cmd
return frappe.call(method, frappe.form_dict)
File "/home/<>/frappe-bench/apps/frappe/frappe/init.py", line 1042, in call
return fn(args, newargs)
File "/home/<>/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 19, in savedocs
doc.submit()
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 859, in submit
self._submit()
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 848, in _submit
self.save()
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 272, in save
return self._save(args, kwargs)
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 325, in _save
self.run_post_save_methods()
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 922, in run_post_save_methods
self.run_method(“on_submit”)
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 787, in run_method
out = Document.hook(fn)(self, args, kwargs)
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 1058, in composer
return composed(self, method, args, kwargs)
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 1041, in runner
add_to_return_value(self, fn(self, args, kwargs))
File "/home/<>/frappe-bench/apps/frappe/frappe/model/document.py", line 781, in
fn = lambda self, args, kwargs: getattr(self, method)(args, kwargs)
File "/home/<>/frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 53, in on_submit
self.update_loan()
File "/home/<>/frappe-bench/apps/erpnext/erpnext/accounts/doctype/journal_entry/journal_entry.py", line 609, in update_loan
update_disbursement_status(doc)
File "/home/<*>/frappe-bench/apps/erpnext/erpnext/hr/doctype/loan/loan.py", line 127, in update_disbursement_status
if status == ‘Disbursed’ and getdate(disbursement_date) > getdate(frappe.db.get_value(“Loan”, doc.name, “repayment_start_date”)):
UnboundLocalError: local variable ‘status’ referenced before assignment