X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep702.php;h=5a05470bb4dfa82954ee0e1b5cdf81a0cd6ce36e;hb=7fae690528df9b851fba309b71bf7c3b961c9dd9;hp=26a09c2da78f9baec4f0077765c5837c74b01dec;hpb=95303d7b5280820af76ddbd8908b120813f1e763;p=fa-stable.git diff --git a/reporting/rep702.php b/reporting/rep702.php index 26a09c2d..5a05470b 100644 --- a/reporting/rep702.php +++ b/reporting/rep702.php @@ -9,7 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 2; +$page_security = 'SA_GLANALYTIC'; // ---------------------------------------------------------------- // $ Revision: 2.0 $ // Creator: Joe Hunt @@ -32,7 +32,7 @@ print_list_of_journal_entries(); function print_list_of_journal_entries() { - global $path_to_root; + global $path_to_root, $systypes_array; $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; @@ -55,14 +55,15 @@ function print_list_of_journal_entries() $params = array( 0 => $comments, 1 => array('text' => _('Period'), 'from' => $from,'to' => $to), - 2 => array('text' => _('Type'), 'from' => systypes::name($systype), + 2 => array('text' => _('Type'), 'from' => + $systype == -1 ? _('All') : $systypes_array[$systype], 'to' => '')); $rep = new FrontReport(_('List of Journal Entries'), "JournalEntries", user_pagesize()); $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); if ($systype == -1) $systype = null; @@ -81,11 +82,11 @@ function print_list_of_journal_entries() } $typeno = $myrow['type_no']; $type = $myrow['type']; - $TransName = systypes::name($myrow['type']); + $TransName = $systypes_array[$myrow['type']]; $rep->TextCol(0, 1, $TransName . " # " . $myrow['type_no']); $rep->TextCol(1, 2, get_reference($myrow['type'], $myrow['type_no'])); $rep->DateCol(2, 3, $myrow['tran_date'], true); - $coms = payment_person_types::person_name($myrow["person_type_id"],$myrow["person_id"]); + $coms = payment_person_name($myrow["person_type_id"],$myrow["person_id"]); $memo = get_comments_string($myrow['type'], $myrow['type_no']); if ($memo != '') {