Update update_status_as_paid_for_completed_expense_claim.py
This commit is contained in:
parent
c27d9f712b
commit
85622f9ccb
@ -7,6 +7,8 @@ import frappe
|
||||
def execute():
|
||||
""" set status as Paid in Expense Claim if total_sactioned_amount
|
||||
and total_amount_reimbursed is equal """
|
||||
|
||||
frappe.reload_doctype('Expense Claim')
|
||||
|
||||
frappe.db.sql("""
|
||||
update
|
||||
@ -14,4 +16,4 @@ def execute():
|
||||
set status = 'Paid'
|
||||
where
|
||||
total_sanctioned_amount = total_amount_reimbursed
|
||||
""")
|
||||
""")
|
||||
|
Loading…
Reference in New Issue
Block a user