Skip to content

Commit

Permalink
fix: Job Card validation fixed when displaying total completed quantity
Browse files Browse the repository at this point in the history
(cherry picked from commit 49981fe)
  • Loading branch information
ramonalmato authored and mergify[bot] committed Jul 29, 2023
1 parent cfa07be commit 7b3bcd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,12 @@ def validate_job_card(self):
if self.for_quantity and flt(total_completed_qty, precision) != flt(
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"))

frappe.throw(
_("The {0} ({1}) must be equal to {2} ({3})").format(
total_completed_qty,
total_completed_qty_label,
bold(flt(total_completed_qty, precision)),
qty_to_manufacture,
bold(self.for_quantity),
Expand Down

0 comments on commit 7b3bcd3

Please sign in to comment.