Merge pull request #36375 from ramonus/job-card-fix
fix: Job Card validation fixed when displaying total completed quantity
This commit is contained in:
commit
b71dafd1f1
@ -544,12 +544,12 @@ class JobCard(Document):
|
|||||||
if self.for_quantity and flt(total_completed_qty, precision) != flt(
|
if self.for_quantity and flt(total_completed_qty, precision) != flt(
|
||||||
self.for_quantity, precision
|
self.for_quantity, precision
|
||||||
):
|
):
|
||||||
total_completed_qty = bold(_("Total Completed Qty"))
|
total_completed_qty_label = bold(_("Total Completed Qty"))
|
||||||
qty_to_manufacture = bold(_("Qty to Manufacture"))
|
qty_to_manufacture = bold(_("Qty to Manufacture"))
|
||||||
|
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("The {0} ({1}) must be equal to {2} ({3})").format(
|
_("The {0} ({1}) must be equal to {2} ({3})").format(
|
||||||
total_completed_qty,
|
total_completed_qty_label,
|
||||||
bold(flt(total_completed_qty, precision)),
|
bold(flt(total_completed_qty, precision)),
|
||||||
qty_to_manufacture,
|
qty_to_manufacture,
|
||||||
bold(self.for_quantity),
|
bold(self.for_quantity),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user