brotherton-erpnext/erpnext/patches/v13_0/set_pos_closing_as_failed.py
2021-08-19 13:43:28 +05:30

8 lines
238 B
Python

from __future__ import unicode_literals
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'")