diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 758fb37211..7fa7d3b0b6 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -329,8 +329,8 @@ class StockEntry(StockController): if total_completed_qty > flt(completed_qty): job_card = frappe.db.get_value('Job Card', {'operation_id': d.name}, 'name') if not job_card: - frappe.throw(_("Work Order {0}: job card not found for the operation {1}") - .format(self.work_order, job_card)) + frappe.throw(_("Work Order {0}: Job Card not found for the operation {1}") + .format(self.work_order, d.operation)) work_order_link = frappe.utils.get_link_to_form('Work Order', self.work_order) job_card_link = frappe.utils.get_link_to_form('Job Card', job_card)