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 3217924242
commit a194d28b69

View File

@@ -1015,8 +1015,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
)
)