-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Patch to update reference_due_date in Journal Entry (#33616)
* fix: Patch to update reference_due_date in Journal Entry (#33616)
- Loading branch information
1 parent
0f9d81e
commit 0740120
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
erpnext/patches/v14_0/update_reference_due_date_in_journal_entry.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = '' | ||
""" | ||
) |