diff --git a/erpnext/patches/v12_0/set_correct_status_for_expense_claim.py b/erpnext/patches/v12_0/set_correct_status_for_expense_claim.py index 1fefc90680e..c3a87fc5ca7 100644 --- a/erpnext/patches/v12_0/set_correct_status_for_expense_claim.py +++ b/erpnext/patches/v12_0/set_correct_status_for_expense_claim.py @@ -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 - """) \ No newline at end of file + """)