Merge branch 'develop' into payment-terms

This commit is contained in:
tundebabzy
2017-09-05 11:14:47 +01:00
committed by GitHub
76 changed files with 12812 additions and 11218 deletions

View File

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
frappe.db.sql("""
update `tabBOM Item`
set rate = rate * conversion_factor
where uom != stock_uom and docstatus < 2
and conversion_factor not in (0, 1)
""")