fix: Patch to update reference_due_date in Journal Entry (#33616)

* fix: Patch to update reference_due_date in Journal Entry (#33616)
This commit is contained in:
mergify[bot]
2023-01-20 18:54:17 +05:30
committed by GitHub
parent 0f9d81e5fa
commit 0740120914
2 changed files with 13 additions and 0 deletions

View File

@@ -268,6 +268,7 @@ erpnext.patches.v13_0.show_india_localisation_deprecation_warning
erpnext.patches.v13_0.show_hr_payroll_deprecation_warning
erpnext.patches.v13_0.reset_corrupt_defaults
erpnext.patches.v13_0.create_accounting_dimensions_for_asset_repair
erpnext.patches.v14_0.update_reference_due_date_in_journal_entry
[post_model_sync]
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')

View File

@@ -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 = ''
"""
)