Multi currency patch initialized
This commit is contained in:
parent
50ba6faaf6
commit
69c1401764
10
erpnext/patches/v5_7/multi_currency.py
Normal file
10
erpnext/patches/v5_7/multi_currency.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
||||||
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import frappe
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.db.sql("""update `tabAccount` acc
|
||||||
|
set currency = (select default_currency from tabCompany where name=acc.company)
|
||||||
|
where ifnull(currency, '') = ''""")
|
||||||
Loading…
x
Reference in New Issue
Block a user