label_cell($trandate);
display_debit_or_credit_cells($myrow["amount"]);
amount_cell($running_total);
- label_cell(get_counterparty_name($myrow["type"], $myrow["trans_no"]));
+
+ label_cell(payment_person_name($myrow["person_type_id"],$myrow["person_id"]));
+
label_cell(get_comments_string($myrow["type"], $myrow["trans_no"]));
label_cell(get_gl_view_str($myrow["type"], $myrow["trans_no"]));
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;