Files
schuetz3-erpnext/erpnext/patches/v13_0/set_pos_closing_as_failed.py
Ankush Menat c07713b860 style: bulk format code with black
v13 port because otherwise backports will result in conflicts always
2022-03-29 17:29:34 +05:30

8 lines
193 B
Python

import frappe
def execute():
frappe.reload_doc("accounts", "doctype", "pos_closing_entry")
frappe.db.sql("update `tabPOS Closing Entry` set `status` = 'Failed' where `status` = 'Queued'")