Update employee_advance.py
https://github.com/frappe/erpnext/issues/13694 Cancel of already paid "Expense Claim" gives error IntegrityError: (1048, u"Column 'claimed_amount' cannot be null") Sol: claimed_amount should be flt
This commit is contained in:
parent
9750d5c184
commit
4d47c63db1
@ -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…
x
Reference in New Issue
Block a user