def update_employee_loan(self): for d in self.accounts: if d.reference_type == "Employee Loan" and flt(d.debit) > 0: doc = frappe.get_doc("Employee Loan", d.reference_name) update_disbursement_status(doc)
def update_employee_loan(self): for d in self.accounts: if d.reference_type=="Employee Loan" and flt(d.debit) > 0: doc = frappe.get_doc("Employee Loan", d.reference_name) update_disbursement_status(doc)