Merge branch 'hotfix'
This commit is contained in:
commit
2cda7fd834
@ -1,2 +1,2 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
__version__ = '6.27.10'
|
__version__ = '6.27.11'
|
||||||
|
@ -7,7 +7,7 @@ app_publisher = "Frappe Technologies Pvt. Ltd."
|
|||||||
app_description = """ERP made simple"""
|
app_description = """ERP made simple"""
|
||||||
app_icon = "icon-th"
|
app_icon = "icon-th"
|
||||||
app_color = "#e74c3c"
|
app_color = "#e74c3c"
|
||||||
app_version = "6.27.10"
|
app_version = "6.27.11"
|
||||||
app_email = "info@erpnext.com"
|
app_email = "info@erpnext.com"
|
||||||
app_license = "GNU General Public License (v3)"
|
app_license = "GNU General Public License (v3)"
|
||||||
source_link = "https://github.com/frappe/erpnext"
|
source_link = "https://github.com/frappe/erpnext"
|
||||||
|
@ -318,14 +318,14 @@ class ProductionPlanningTool(Document):
|
|||||||
# Did not use qty_consumed_per_unit in the query, as it leads to rounding loss
|
# Did not use qty_consumed_per_unit in the query, as it leads to rounding loss
|
||||||
for d in frappe.db.sql("""select fb.item_code,
|
for d in frappe.db.sql("""select fb.item_code,
|
||||||
ifnull(sum(fb.qty/ifnull(bom.quantity, 1)), 0) as qty,
|
ifnull(sum(fb.qty/ifnull(bom.quantity, 1)), 0) as qty,
|
||||||
fb.description, fb.stock_uom, it.min_order_qty
|
fb.description, fb.stock_uom, item.min_order_qty
|
||||||
from `tabBOM Explosion Item` fb, `tabBOM` bom, `tabItem` it
|
from `tabBOM Explosion Item` fb, `tabBOM` bom, `tabItem` item
|
||||||
where bom.name = fb.parent and it.name = fb.item_code
|
where bom.name = fb.parent and item.name = fb.item_code
|
||||||
and (is_pro_applicable = 0 or ifnull(default_bom, "")="")
|
and (item.is_pro_applicable = 0 or ifnull(item.default_bom, "")="")
|
||||||
and (is_sub_contracted_item = 0 or ifnull(default_bom, "")="")
|
and (item.is_sub_contracted_item = 0 or ifnull(item.default_bom, "")="")
|
||||||
and is_stock_item = 1
|
and item.is_stock_item = 1
|
||||||
and fb.docstatus<2 and bom.name=%s
|
and fb.docstatus<2 and bom.name=%s
|
||||||
group by item_code, stock_uom""", bom, as_dict=1):
|
group by fb.item_code, fb.stock_uom""", bom, as_dict=1):
|
||||||
bom_wise_item_details.setdefault(d.item_code, d)
|
bom_wise_item_details.setdefault(d.item_code, d)
|
||||||
else:
|
else:
|
||||||
# Get all raw materials considering SA items as raw materials,
|
# Get all raw materials considering SA items as raw materials,
|
||||||
@ -337,7 +337,7 @@ class ProductionPlanningTool(Document):
|
|||||||
where bom.name = bom_item.parent and bom.name = %s and bom_item.docstatus < 2
|
where bom.name = bom_item.parent and bom.name = %s and bom_item.docstatus < 2
|
||||||
and bom_item.item_code = item.name
|
and bom_item.item_code = item.name
|
||||||
and item.is_stock_item = 1
|
and item.is_stock_item = 1
|
||||||
group by item_code""", bom, as_dict=1):
|
group by bom_item.item_code""", bom, as_dict=1):
|
||||||
bom_wise_item_details.setdefault(d.item_code, d)
|
bom_wise_item_details.setdefault(d.item_code, d)
|
||||||
for item, item_details in bom_wise_item_details.items():
|
for item, item_details in bom_wise_item_details.items():
|
||||||
for so_qty in so_wise_qty:
|
for so_qty in so_wise_qty:
|
||||||
|
2
setup.py
2
setup.py
@ -1,7 +1,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from pip.req import parse_requirements
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
version = "6.27.10"
|
version = "6.27.11"
|
||||||
requirements = parse_requirements("requirements.txt", session="")
|
requirements = parse_requirements("requirements.txt", session="")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user