PP Tool: data for required raw materials
This commit is contained in:
parent
c772b3d86a
commit
b5f9b5de45
@ -287,8 +287,7 @@ class ProductionPlanningTool(Document):
|
|||||||
'Quantity Requested for Purchase', 'Ordered Qty', 'Actual Qty']]
|
'Quantity Requested for Purchase', 'Ordered Qty', 'Actual Qty']]
|
||||||
for item in self.item_dict:
|
for item in self.item_dict:
|
||||||
total_qty = sum([flt(d[0]) for d in self.item_dict[item]])
|
total_qty = sum([flt(d[0]) for d in self.item_dict[item]])
|
||||||
for item_details in self.item_dict[item]:
|
item_list.append([item, self.item_dict[item][0][1], self.item_dict[item][0][2], total_qty])
|
||||||
item_list.append([item, item_details[1], item_details[2], item_details[0]])
|
|
||||||
item_qty = frappe.db.sql("""select warehouse, indented_qty, ordered_qty, actual_qty
|
item_qty = frappe.db.sql("""select warehouse, indented_qty, ordered_qty, actual_qty
|
||||||
from `tabBin` where item_code = %s""", item, as_dict=1)
|
from `tabBin` where item_code = %s""", item, as_dict=1)
|
||||||
i_qty, o_qty, a_qty = 0, 0, 0
|
i_qty, o_qty, a_qty = 0, 0, 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user