From 83bd138dde3263be41ae600a6270de3f4645034f Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 21 Jan 2016 10:53:33 +0100 Subject: [PATCH] Fixed bug in work order view. --- includes/types.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/types.inc b/includes/types.inc index 7242f86c..959c1cd1 100644 --- a/includes/types.inc +++ b/includes/types.inc @@ -130,7 +130,7 @@ function payment_person_name($type, $person_id, $full=true) { return ($full ? $payment_person_types[$type] . " ":"") . $qe["description"]; case PT_WORKORDER : global $wo_cost_types; - return $wo_cost_types[$person_id]; + return get_trans_view_str(ST_WORKORDER, $person_id, _('Work Order').' '.$person_id); case PT_CUSTOMER : return ($full ?$payment_person_types[$type] . " ":"") . sprintf("[%05s] %s", $person_id, get_customer_name($person_id)); case PT_SUPPLIER : -- 2.30.2