diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index cbf8217a85..30d9d708a8 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -495,7 +495,7 @@ def check_packing_list(price_list_rate_name, desired_qty, item_code): """ item_price = frappe.get_doc("Item Price", price_list_rate_name) - if desired_qty: + if desired_qty and item_price.packing_unit: packing_increment = desired_qty % item_price.packing_unit if packing_increment == 0: