mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
Fixes and patch for Currency Exchange based on date
This commit is contained in:
9
erpnext/patches/v7_1/set_currency_exchange_date.py
Normal file
9
erpnext/patches/v7_1/set_currency_exchange_date.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doctype("Currency Exchange")
|
||||
frappe.db.sql("""
|
||||
update `tabCurrency Exchange`
|
||||
set `date` = '2010-01-01'
|
||||
where date is null or date = '' or date = '0000-00-00'
|
||||
""")
|
||||
Reference in New Issue
Block a user