Files
erpnext/erpnext/patches/v12_0/update_payment_entry_status.py
2020-09-07 21:54:57 +05:30

7 lines
224 B
Python

from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc("accounts", "doctype", "payment_entry")
frappe.db.sql(""" UPDATE `tabPayment Entry` set status = 'Cancelled' WHERE docstatus = 2 """)