From: Janusz Dobrowolski Date: Thu, 21 Jan 2016 09:53:33 +0000 (+0100) Subject: Fixed bug in work order view. X-Git-Tag: v2.4.2~19^2~64 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=83bd138dde3263be41ae600a6270de3f4645034f;p=fa-stable.git Fixed bug in work order view. --- 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 :