Fixed bug in work order view.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 21 Jan 2016 09:53:33 +0000 (10:53 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 21 Jan 2016 16:54:18 +0000 (17:54 +0100)
includes/types.inc

index 7242f86c64ecb7a523505f21e8974de5814e6737..959c1cd1360a94c58c361d5b46999babe37f42fe 100644 (file)
@@ -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 :