Merge pull request #15794 from ashish-greycube/patch-1
Update employee_advance.py
This commit is contained in:
commit
81cdd967d7
@ -69,7 +69,7 @@ class EmployeeAdvance(Document):
|
||||
where employee_advance = %s and docstatus=1 and allocated_amount > 0
|
||||
""", self.name)[0][0]
|
||||
|
||||
frappe.db.set_value("Employee Advance", self.name, "claimed_amount", claimed_amount)
|
||||
frappe.db.set_value("Employee Advance", self.name, "claimed_amount", flt(claimed_amount))
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_due_advance_amount(employee, posting_date):
|
||||
@ -109,4 +109,4 @@ def make_bank_entry(dt, dn):
|
||||
"account_type": payment_account.account_type
|
||||
})
|
||||
|
||||
return je.as_dict()
|
||||
return je.as_dict()
|
||||
|
Loading…
Reference in New Issue
Block a user