Merge pull request #15794 from ashish-greycube/patch-1

Update employee_advance.py
This commit is contained in:
Shreya Shah 2018-10-29 14:38:21 +05:30 committed by GitHub
commit 81cdd967d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()