X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep601.php;h=4690ac615981c8d97287a28cbb8798abf1f99274;hb=fff65dd000727b3403f641cb265c7b327b4fe22d;hp=1d47bc78a1510ca4e201862ab6cdff147e2709bb;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git 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"]]);