Update update_status_as_paid_for_completed_expense_claim.py

This commit is contained in:
Nabin Hait 2017-04-25 20:43:29 +05:30 committed by GitHub
parent c27d9f712b
commit 85622f9ccb

View File

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