Fixes in production planning tool

This commit is contained in:
Nabin Hait 2014-08-13 16:29:05 +05:30
parent e368091627
commit 5145b1445b

View File

@ -122,7 +122,7 @@ class ProductionPlanningTool(Document):
if self.fg_item:
item_condition = ' and pi.item_code = "' + self.fg_item + '"'
packed_items = frappe.db.sql("""select distinct pi.parent, pi.item_code, pi.warehouse as reserved_warhouse,
packed_items = frappe.db.sql("""select distinct pi.parent, pi.item_code, pi.warehouse as warehouse,
(((so_item.qty - ifnull(so_item.delivered_qty, 0)) * pi.qty) / so_item.qty)
as pending_qty
from `tabSales Order Item` so_item, `tabPacked Item` pi