mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
Fixed divison error
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user