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

This commit is contained in:
Mangesh-Khairnar 2020-06-29 08:54:53 +05:30 committed by GitHub
parent a74cffe7a4
commit 73edba0e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {