Merge pull request #35303 from s-aga-r/FIX-34761

fix: Pick List TypeError
This commit is contained in:
Sagar Sharma 2023-05-23 14:20:49 +05:30 committed by GitHub
commit 3940deb31c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -460,7 +460,7 @@ def get_items_with_location_and_quantity(item_doc, item_location_map, docstatus)
item_doc.qty if (docstatus == 1 and item_doc.stock_qty == 0) else item_doc.stock_qty
)
while remaining_stock_qty > 0 and available_locations:
while flt(remaining_stock_qty) > 0 and available_locations:
item_location = available_locations.pop(0)
item_location = frappe._dict(item_location)