fix: Patch to update reference_due_date in Journal Entry (#33616)
This commit is contained in:
parent
9627b46ee7
commit
312625fdc5
@ -269,6 +269,7 @@ erpnext.patches.v13_0.reset_corrupt_defaults
|
|||||||
erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
|
erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
|
||||||
erpnext.patches.v15_0.delete_taxjar_doctypes
|
erpnext.patches.v15_0.delete_taxjar_doctypes
|
||||||
erpnext.patches.v15_0.create_asset_depreciation_schedules_from_assets
|
erpnext.patches.v15_0.create_asset_depreciation_schedules_from_assets
|
||||||
|
erpnext.patches.v14_0.update_reference_due_date_in_journal_entry
|
||||||
|
|
||||||
[post_model_sync]
|
[post_model_sync]
|
||||||
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
if frappe.db.get_value("Journal Entry Account", {"reference_due_date": ""}):
|
||||||
|
frappe.db.sql(
|
||||||
|
"""
|
||||||
|
UPDATE `tabJournal Entry Account`
|
||||||
|
SET reference_due_date = NULL
|
||||||
|
WHERE reference_due_date = ''
|
||||||
|
"""
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user