commit | 962e9bcd71da73f1f0c77a400402c71ef49f9f11 | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Wed May 27 21:53:29 2020 +0530 |
committer | GitHub <noreply@github.com> | Wed May 27 21:53:29 2020 +0530 |
tree | 5a0ebae691cba2621fa77ac5c362638552ad621d | |
parent | 33bf90db0bf43e3813ee323c1d784e657399f6fe [diff] |
fix: raw material warehouse in Production Planning Report (#21983)
diff --git a/erpnext/manufacturing/report/production_planning_report/production_planning_report.py b/erpnext/manufacturing/report/production_planning_report/production_planning_report.py index b5e6c6f..5ac3923 100644 --- a/erpnext/manufacturing/report/production_planning_report/production_planning_report.py +++ b/erpnext/manufacturing/report/production_planning_report/production_planning_report.py
@@ -220,6 +220,9 @@ if item_details: warehouses = [item_details["default_warehouse"]] + if self.filters.raw_material_warehouse: + warehouses = get_child_warehouses(self.filters.raw_material_warehouse) + d.remaining_qty = d.required_qty self.pick_materials_from_warehouses(d, data, warehouses)