fix: test cases error

(cherry picked from commit 8df18762a9)
This commit is contained in:
Mihir Kandoi
2025-04-14 11:09:45 +05:30
committed by Mergify
parent dedb19e3e9
commit 13d3b27a1f

View File

@@ -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,