commit | 73edba0e10d0a33fdd4186a83673e9d2295d578f | [log] [tgz] |
---|---|---|
author | Mangesh-Khairnar <mkhairnar10@gmail.com> | Mon Jun 29 08:54:53 2020 +0530 |
committer | GitHub <noreply@github.com> | Mon Jun 29 08:54:53 2020 +0530 |
tree | ac62d36ae3fb210dff9954e4539750f967ef096a | |
parent | a74cffe7a466d5add5d969a23ade9e96e23746df [diff] |
fix: handle nonetype issue for packed items (#22493)
diff --git a/erpnext/selling/report/pending_so_items_for_purchase_request/pending_so_items_for_purchase_request.py b/erpnext/selling/report/pending_so_items_for_purchase_request/pending_so_items_for_purchase_request.py index 14d8031..e89c451 100644 --- a/erpnext/selling/report/pending_so_items_for_purchase_request/pending_so_items_for_purchase_request.py +++ b/erpnext/selling/report/pending_so_items_for_purchase_request/pending_so_items_for_purchase_request.py
@@ -158,7 +158,7 @@ } 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 = {