mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 02:26:33 +00:00
Merge branch 'develop' into payment-terms
This commit is contained in:
0
erpnext/patches/v8_8/__init__.py
Normal file
0
erpnext/patches/v8_8/__init__.py
Normal file
13
erpnext/patches/v8_8/set_bom_rate_as_per_uom.py
Normal file
13
erpnext/patches/v8_8/set_bom_rate_as_per_uom.py
Normal 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)
|
||||
""")
|
||||
Reference in New Issue
Block a user