Fixed divison error
This commit is contained in:
parent
00f6aef947
commit
9983d41fb0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user