From: Joe Hunt Date: Wed, 31 Oct 2012 07:56:00 +0000 (+0100) Subject: Filter for non-zero values in Bank Statement Report X-Git-Tag: 2.3-final~394 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=2109927b5e0f11694e425a3a40ddd78b91478e5f;p=fa-stable.git Filter for non-zero values in Bank Statement Report --- diff --git a/reporting/rep601.php b/reporting/rep601.php index 1d47bc78..4690ac61 100644 --- a/reporting/rep601.php +++ b/reporting/rep601.php @@ -59,8 +59,9 @@ function print_bank_transactions() $acc = $_POST['PARAM_0']; $from = $_POST['PARAM_1']; $to = $_POST['PARAM_2']; - $comments = $_POST['PARAM_3']; - $destination = $_POST['PARAM_4']; + $zero = $_POST['PARAM_3']; + $comments = $_POST['PARAM_4']; + $destination = $_POST['PARAM_5']; if ($destination) include_once($path_to_root . "/reporting/includes/excel_report.inc"); else @@ -112,6 +113,8 @@ function print_bank_transactions() while ($myrow=db_fetch($trans)) { + if ($zero == 0 && $myrow['amount'] == 0.0) + continue; $total += $myrow['amount']; $rep->TextCol(0, 1, $systypes_array[$myrow["type"]]); diff --git a/reporting/reports_main.php b/reporting/reports_main.php index ca278556..adb55015 100644 --- a/reporting/reports_main.php +++ b/reporting/reports_main.php @@ -238,6 +238,7 @@ $reports->addReportClass(_('Banking'), RC_BANKING); array( _('Bank Accounts') => 'BANK_ACCOUNTS', _('Start Date') => 'DATEBEGINM', _('End Date') => 'DATEENDM', + _('Zero values') => 'YES_NO', _('Comments') => 'TEXTBOX', _('Destination') => 'DESTINATION'));