commit | 9983d41fb0ab43aca5c55b1db0726312c5cf0381 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu Aug 30 19:10:24 2018 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu Aug 30 19:10:36 2018 +0530 |
tree | edd64ac9acfe20e21690913a796219660c14994a | |
parent | 00f6aef947f2a9726ef2cb2e3b99e0736881e287 [diff] |
Fixed divison error
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index cbf8217..30d9d70 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py
@@ -495,7 +495,7 @@ """ 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: