X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gl%2Fview%2Fgl_trans_view.php;h=d869dce935239e912a41242d743f9d5faf75d023;hb=c31829537f02787dd94654820dd74168c054b8c4;hp=2bf406f53e2b88b0b3afbced7eb82399ab1e4b69;hpb=818719f38b8327cdca616d58b13913dbd174d96a;p=fa-stable.git
diff --git a/gl/view/gl_trans_view.php b/gl/view/gl_trans_view.php
index 2bf406f5..d869dce9 100644
--- a/gl/view/gl_trans_view.php
+++ b/gl/view/gl_trans_view.php
@@ -1,16 +1,16 @@
.
+ See the License here .
***********************************************************************/
-$page_security = 8;
-$path_to_root="../..";
+$page_security = 'SA_GLTRANSVIEW';
+$path_to_root = "../..";
include_once($path_to_root . "/includes/session.inc");
page(_("General Ledger Transaction Details"), true);
@@ -29,8 +29,8 @@ if (!isset($_GET['type_id']) || !isset($_GET['trans_no']))
function display_gl_heading($myrow)
{
- global $table_style;
- $trans_name = systypes::name($_GET['type_id']);
+ global $table_style, $systypes_array;
+ $trans_name = $systypes_array[$_GET['type_id']];
start_table("$table_style width=95%");
$th = array(_("General Ledger Transaction Details"),
_("Date"), _("Person/Item"));
@@ -38,7 +38,7 @@ function display_gl_heading($myrow)
start_row();
label_cell("$trans_name #" . $_GET['trans_no']);
label_cell(sql2date($myrow["tran_date"]));
- label_cell(payment_person_types::person_name($myrow["person_type_id"],$myrow["person_id"]));
+ label_cell(payment_person_name($myrow["person_type_id"],$myrow["person_id"]));
end_row();
@@ -53,7 +53,7 @@ $result = db_query($sql,"could not get transactions");
if (db_num_rows($result) == 0)
{
- echo "" . _("No general ledger transactions have been created for") . " " .systypes::name($_GET['type_id'])." " . _("number") . " " . $_GET['trans_no'] . "
";
+ echo "" . _("No general ledger transactions have been created for") . " " .$systypes_array[$_GET['type_id']]." " . _("number") . " " . $_GET['trans_no'] . "
";
end_page(true);
exit;
}