fix: handle nonetype issue for packed items (#22493) (#22494)

(cherry picked from commit 73edba0e10)

Co-authored-by: Mangesh-Khairnar <mkhairnar10@gmail.com>
This commit is contained in:
mergify[bot]
2020-06-29 17:36:43 +05:30
committed by GitHub
parent f8efa0508a
commit a20957d355

View File

@@ -158,7 +158,7 @@ def get_data():
}
pending_so.append(so_record)
else:
for item in bundled_item_map.get((so.name, so.item_code)):
for item in bundled_item_map.get((so.name, so.item_code), []):
material_requests_against_so = materials_request_dict.get((so.name, item.item_code)) or {}
if flt(item.qty) > flt(material_requests_against_so.get('qty')):
so_record = {