Merge pull request #21606 from frappe/sahil28297-patch-1

fix(patch): reload Expense Claim doctype
This commit is contained in:
Deepesh Garg
2020-05-05 20:21:23 +05:30
committed by GitHub

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