Fixed divison error

This commit is contained in:
Nabin Hait 2018-08-30 19:10:24 +05:30
parent 00f6aef947
commit 9983d41fb0

View File

@ -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: