We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c292f4 commit 9d90fc4Copy full SHA for 9d90fc4
1 file changed
erpnext/controllers/status_updater.py
@@ -341,7 +341,7 @@ def validate_qty(self):
341
item_details.extend(self.fetch_items_with_pending_qty(args, "item_code", regular_items))
342
343
# Query production plan items with production_item field
344
- if pp_items:
+ if pp_items and args.get("target_dt") in ["Production Plan Sub Assembly Item"]:
345
item_details.extend(self.fetch_items_with_pending_qty(args, "production_item", pp_items))
346
347
item_lookup = {item.name: item for item in item_details}
0 commit comments