mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 14:08:29 +00:00
fix: patch to set status cancelled for already cancelled pos invoices (#47725)
This commit is contained in:
@@ -413,6 +413,7 @@ erpnext.patches.v14_0.set_update_price_list_based_on
|
||||
erpnext.patches.v15_0.update_journal_entry_type
|
||||
erpnext.patches.v15_0.set_grand_total_to_default_mop
|
||||
execute:frappe.db.set_single_value("Accounts Settings", "use_new_budget_controller", True)
|
||||
erpnext.patches.v15_0.set_cancelled_status_to_cancelled_pos_invoice
|
||||
erpnext.patches.v15_0.rename_group_by_to_categorize_by_in_custom_reports
|
||||
erpnext.patches.v15_0.remove_agriculture_roles
|
||||
erpnext.patches.v14_0.update_full_name_in_contract
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import frappe
|
||||
from frappe.query_builder import DocType
|
||||
|
||||
|
||||
def execute():
|
||||
POSInvoice = DocType("POS Invoice")
|
||||
|
||||
frappe.qb.update(POSInvoice).set(POSInvoice.status, "Cancelled").where(POSInvoice.docstatus == 2).run()
|
||||
Reference in New Issue
Block a user