mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 09:17:15 +00:00
Multi currency patch initialized
This commit is contained in:
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, '') = ''""")
|
||||
Reference in New Issue
Block a user