Merge pull request #48081 from frappe/mergify/bp/version-15-hotfix/pr-48048

fix: use `flt` value of bin qty (backport #48048)
This commit is contained in:
Sagar Vora
2025-07-14 05:17:07 +00:00
committed by GitHub

View File

@@ -116,13 +116,15 @@ class PickList(TransactionBase):
continue
bin_qty = frappe.db.get_value(
"Bin",
{"item_code": row.item_code, "warehouse": row.warehouse},
"actual_qty",
bin_qty = flt(
frappe.db.get_value(
"Bin",
{"item_code": row.item_code, "warehouse": row.warehouse},
"actual_qty",
)
)
if row.picked_qty > flt(bin_qty):
if row.picked_qty > bin_qty:
frappe.throw(
_(
"At Row #{0}: The picked quantity {1} for the item {2} is greater than available stock {3} in the warehouse {4}."