mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Update update_status_as_paid_for_completed_expense_claim.py
This commit is contained in:
@@ -7,6 +7,8 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
""" set status as Paid in Expense Claim if total_sactioned_amount
|
""" set status as Paid in Expense Claim if total_sactioned_amount
|
||||||
and total_amount_reimbursed is equal """
|
and total_amount_reimbursed is equal """
|
||||||
|
|
||||||
|
frappe.reload_doctype('Expense Claim')
|
||||||
|
|
||||||
frappe.db.sql("""
|
frappe.db.sql("""
|
||||||
update
|
update
|
||||||
@@ -14,4 +16,4 @@ def execute():
|
|||||||
set status = 'Paid'
|
set status = 'Paid'
|
||||||
where
|
where
|
||||||
total_sanctioned_amount = total_amount_reimbursed
|
total_sanctioned_amount = total_amount_reimbursed
|
||||||
""")
|
""")
|
||||||
|
|||||||
Reference in New Issue
Block a user