X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep702.php;h=10bcfef7fb8772fdc446113d0de92e4b5a8ca5ab;hb=cceb107ab3e8db0b400aeb7b98d0360e06ba8dae;hp=478770f28a5f2ef259301136752fc0f5c545e7e2;hpb=902f1015d874c33bd7946b17de2ad80b4f2144b6;p=fa-stable.git diff --git a/reporting/rep702.php b/reporting/rep702.php index 478770f2..10bcfef7 100644 --- a/reporting/rep702.php +++ b/reporting/rep702.php @@ -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,7 +55,8 @@ 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()); @@ -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 != '') {