mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
committed by
Mergify
parent
d054486495
commit
fc8d451c55
@@ -113,13 +113,15 @@ class PickList(Document):
|
|||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
bin_qty = frappe.db.get_value(
|
bin_qty = flt(
|
||||||
"Bin",
|
frappe.db.get_value(
|
||||||
{"item_code": row.item_code, "warehouse": row.warehouse},
|
"Bin",
|
||||||
"actual_qty",
|
{"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(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
"At Row #{0}: The picked quantity {1} for the item {2} is greater than available stock {3} in the warehouse {4}."
|
"At Row #{0}: The picked quantity {1} for the item {2} is greater than available stock {3} in the warehouse {4}."
|
||||||
|
|||||||
Reference in New Issue
Block a user