diff --git a/reports/cash_register_stats.pl b/reports/cash_register_stats.pl index c2b22f9db2..1861e02200 100755 --- a/reports/cash_register_stats.pl +++ b/reports/cash_register_stats.pl @@ -82,6 +82,10 @@ if ($do_it) { } } + if ( $transaction_type eq 'PAYMENT' || $transaction_type eq 'ACT' ) { + $whereTType .= q{ AND status != 'VOID' }; + } + my $whereBranchCode = q{}; if ($manager_branchcode ne 'ALL') { $whereBranchCode = q{ AND m.branchcode = ?};