- 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"));
+ global $systypes_array;
+
+ $trans_name = $systypes_array[$_GET['type_id']];
+ $journal = $_GET['type_id'] == ST_JOURNAL;
+
+ start_table(TABLESTYLE, "width='95%'");
+ $th = array(_("General Ledger Transaction Details"), _("Reference"),
+ _("Transaction Date"), _("GL #"));
+
+ if ($_GET['type_id'] == ST_JOURNAL)
+ array_insert($th, 3, array(_("Document Date"), _("Event Date")));
+ else
+ array_insert($th, 3, array(_("Counterparty")));
+
+ if($myrow['supp_reference'])
+ {
+ array_insert($th, 2, array(_("Supplier Reference")));
+ }