fix(patch): reload Expense Claim doctype

This commit is contained in:
sahil28297
2020-05-05 20:07:48 +05:30
committed by Nabin Hait
parent 1c03d154ce
commit 6d4f451d0d

View File

@@ -4,8 +4,11 @@
import frappe
def execute():
frappe.reload_doc("hr", "doctype", "expense_claim")
frappe.db.sql("""
update `tabExpense Claim`
set status = 'Paid'
where total_advance_amount + total_amount_reimbursed = total_sanctioned_amount + total_taxes_and_charges
""")
""")