mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-02 13:08:27 +00:00
fix: update subscription details patch
(cherry picked from commit c7b1379a7f)
# Conflicts:
# erpnext/patches.txt
# erpnext/patches/v14_0/update_subscription_details.py
This commit is contained in:
@@ -333,6 +333,12 @@ erpnext.patches.v13_0.update_docs_link
|
||||
erpnext.patches.v14_0.enable_all_leads
|
||||
execute:frappe.db.set_single_value("Accounts Settings", "merge_similar_account_heads", 0)
|
||||
erpnext.patches.v14_0.update_reference_type_in_journal_entry_accounts
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
erpnext.patches.v14_0.update_subscription_details # 23-07-2025
|
||||
execute:frappe.delete_doc("Report", "Tax Detail", force=True)
|
||||
erpnext.patches.v15_0.enable_all_leads
|
||||
>>>>>>> c7b1379a7f (fix: update subscription details patch)
|
||||
erpnext.patches.v14_0.update_company_in_ldc
|
||||
erpnext.patches.v14_0.set_packed_qty_in_draft_delivery_notes
|
||||
erpnext.patches.v14_0.cleanup_workspaces
|
||||
|
||||
18
erpnext/patches/v14_0/update_subscription_details.py
Normal file
18
erpnext/patches/v14_0/update_subscription_details.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
subscription_invoices = frappe.get_all(
|
||||
"Subscription Invoice", fields=["document_type", "invoice", "parent"]
|
||||
)
|
||||
|
||||
for subscription_invoice in subscription_invoices:
|
||||
frappe.db.set_value(
|
||||
subscription_invoice.document_type,
|
||||
subscription_invoice.invoice,
|
||||
"subscription",
|
||||
subscription_invoice.parent,
|
||||
update_modified=False,
|
||||
)
|
||||
|
||||
frappe.delete_doc_if_exists("DocType", "Subscription Invoice", force=1)
|
||||
Reference in New Issue
Block a user