fix: For Quantity error msg in Stock Entry

(cherry picked from commit 9049db41ae)
This commit is contained in:
Sagar Sharma
2022-09-27 12:00:50 +05:30
committed by Mergify
parent a28ae4d653
commit 4b6e1f4892

View File

@@ -1073,8 +1073,8 @@ class StockEntry(StockController):
# No work order could mean independent Manufacture entry, if so skip validation
if self.work_order and self.fg_completed_qty > allowed_qty:
frappe.throw(
_("For quantity {0} should not be greater than work order quantity {1}").format(
flt(self.fg_completed_qty), wo_qty
_("For quantity {0} should not be greater than allowed quantity {1}").format(
flt(self.fg_completed_qty), allowed_qty
)
)