fix[minor]: Payment Entry status patch (#19519)

This commit is contained in:
Marica 2019-11-07 13:01:45 +05:30 committed by Nabin Hait
parent e37a67245e
commit 52d888de42

View File

@ -1,6 +1,7 @@
import frappe
def execute():
frappe.reload_doctype("Payment Entry")
frappe.db.sql("""update `tabPayment Entry` set status = CASE
WHEN docstatus = 1 THEN 'Submitted'
WHEN docstatus = 2 THEN 'Cancelled'