commit | 7ac731dd4f212c404a0099aa97fb51824e9d4ce6 | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Wed May 27 21:53:17 2020 +0530 |
committer | GitHub <noreply@github.com> | Wed May 27 21:53:17 2020 +0530 |
tree | 34116b15b1cea50d3a79b559bcbb9b39216a9cb1 | |
parent | c2aabb0fbf0efe4491afe68ba1ab13efe4ae0d6f [diff] |
fix: raw material warehouse in Production Planning Report (#21982)
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)