From 13d3b27a1fe91e8b017968e064d2ab123ef62ba5 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Mon, 14 Apr 2025 11:09:45 +0530 Subject: [PATCH] fix: test cases error (cherry picked from commit 8df18762a9ded000fd82bef20789622ed60cb9d4) --- .../manufacturing/doctype/production_plan/production_plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.py b/erpnext/manufacturing/doctype/production_plan/production_plan.py index c285e34c7e6..1e27e8d59de 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.py +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.py @@ -1776,7 +1776,7 @@ def get_sub_assembly_items( frappe._dict( { "actual_qty": bin_details[d.item_code][0].get("actual_qty", 0) - if bin_details[d.item_code] + if bin_details.get(d.item_code) else 0, "parent_item_code": parent_item_code, "description": d.description,