Skip to content

Commit

Permalink
Merge pull request #36401 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-36375

fix: Job Card validation fixed when displaying total completed quantity (backport #36375)
  • Loading branch information
rohitwaghchaure authored Jul 29, 2023
2 parents 32bdb7c + 7b3bcd3 commit b72232b
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 b72232b

Please sign in to comment.