From 69c1401764ae0db4a72dfab44b510fadb93aaedf Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 19 Aug 2015 19:22:12 +0530 Subject: [PATCH] Multi currency patch initialized --- erpnext/patches/v5_7/multi_currency.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 erpnext/patches/v5_7/multi_currency.py diff --git a/erpnext/patches/v5_7/multi_currency.py b/erpnext/patches/v5_7/multi_currency.py new file mode 100644 index 0000000000..52e4d0499f --- /dev/null +++ b/erpnext/patches/v5_7/multi_currency.py @@ -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, '') = ''""") \ No newline at end of file