mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
Merge pull request #21606 from frappe/sahil28297-patch-1
fix(patch): reload Expense Claim doctype
This commit is contained in:
@@ -4,8 +4,11 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
|
||||||
|
frappe.reload_doc("hr", "doctype", "expense_claim")
|
||||||
|
|
||||||
frappe.db.sql("""
|
frappe.db.sql("""
|
||||||
update `tabExpense Claim`
|
update `tabExpense Claim`
|
||||||
set status = 'Paid'
|
set status = 'Paid'
|
||||||
where total_advance_amount + total_amount_reimbursed = total_sanctioned_amount + total_taxes_and_charges
|
where total_advance_amount + total_amount_reimbursed = total_sanctioned_amount + total_taxes_and_charges
|
||||||
""")
|
""")
|
||||||
|
|||||||
Reference in New Issue
Block a user