- global $table_style;
- $trans_name = systypes::name($_GET['type_id']);
- start_table("$table_style width=95%");
- $th = array(_("General Ledger Transaction Details"),
- _("Date"), _("Person/Item"));
- table_header($th);
- start_row();
+ global $systypes_array;
+ $trans_name = $systypes_array[$_GET['type_id']];
+ start_table(TABLESTYLE, "width=95%");
+ $th = array(_("General Ledger Transaction Details"), _("Reference"),
+ _("Date"));
+
+ if ($_GET['type_id'] != ST_JOURNAL)
+ $th[] = _("Counterparty");
+
+ table_header($th);
+ start_row();