X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Ftypes.inc;h=f07b83b3cd56cebf84d314f3ab0480932af3faed;hb=95fd152649f9383cee8680762daf3430e8250bd6;hp=dc2145eb9012051d5cafa0499ccb0bb05ae03f34;hpb=8ffddf50ffbe93672c769e2cf0501d0f9125e2a0;p=fa-stable.git diff --git a/includes/types.inc b/includes/types.inc index dc2145eb..f07b83b3 100644 --- a/includes/types.inc +++ b/includes/types.inc @@ -127,12 +127,10 @@ function payment_person_name($type, $person_id, $full=true) { global $wo_cost_types; return $wo_cost_types[$person_id]; case PT_CUSTOMER : - return ($full ?$payment_person_types[$type] . " ":"") . get_customer_name($person_id); + return ($full ?$payment_person_types[$type] . " ":"") . sprintf("[%05s] %s", $person_id, get_customer_name($person_id)); case PT_SUPPLIER : - return ($full ? $payment_person_types[$type] . " ":"") . get_supplier_name($person_id); + return ($full ? $payment_person_types[$type] . " ":"") . sprintf("[%05s] %s", $person_id, get_supplier_name($person_id)); default : - //DisplayDBerror("Invalid type sent to person_name"); - //return; return ''; } } @@ -269,4 +267,5 @@ defined('ICON_VIEW') || define('ICON_VIEW', 'view.gif'); defined('ICON_SUBMIT') || define('ICON_SUBMIT', 'ok.gif'); defined('ICON_ESCAPE') || define('ICON_ESCAPE', 'escape.png'); defined('ICON_ALLOC') || define('ICON_ALLOC', 'alloc.png'); +defined('ICON_CLOSED') || define('ICON_CLOSED', 'closed.png');