fix: Validation message in work order
This commit is contained in:
parent
bdc899857c
commit
bebbc6371b
@ -329,8 +329,8 @@ class StockEntry(StockController):
|
|||||||
if total_completed_qty > flt(completed_qty):
|
if total_completed_qty > flt(completed_qty):
|
||||||
job_card = frappe.db.get_value('Job Card', {'operation_id': d.name}, 'name')
|
job_card = frappe.db.get_value('Job Card', {'operation_id': d.name}, 'name')
|
||||||
if not job_card:
|
if not job_card:
|
||||||
frappe.throw(_("Work Order {0}: job card not found for the operation {1}")
|
frappe.throw(_("Work Order {0}: Job Card not found for the operation {1}")
|
||||||
.format(self.work_order, job_card))
|
.format(self.work_order, d.operation))
|
||||||
|
|
||||||
work_order_link = frappe.utils.get_link_to_form('Work Order', self.work_order)
|
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)
|
job_card_link = frappe.utils.get_link_to_form('Job Card', job_card)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user