X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep501.php;h=c3821e0be10ffecaa9468e94d5870ca147c962e5;hb=efc1a9ce400be6233323af9c193ab9460407bcf6;hp=b697925f1f87654b8c6d232db434d91a46085a97;hpb=ad96cd0abbfd826592b851b8e0cb6d89e450fdf4;p=fa-stable.git diff --git a/reporting/rep501.php b/reporting/rep501.php index b697925f..c3821e0b 100644 --- a/reporting/rep501.php +++ b/reporting/rep501.php @@ -9,7 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 2; +$page_security = 'SA_DIMENSIONREP'; // ---------------------------------------------------------------- // $ Revision: 2.0 $ // Creator: Joe Hunt @@ -32,8 +32,8 @@ function getTransactions($from, $to) $sql = "SELECT * FROM ".TB_PREF."dimensions - WHERE reference >= '$from' - AND reference <= '$to' + WHERE reference >= ".db_escape($from)." + AND reference <= ".db_escape($to)." ORDER BY reference"; @@ -93,7 +93,7 @@ function print_dimension_summary() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); $res = getTransactions($fromdim, $todim); while ($trans=db_fetch($res))