+
+if ( $cgi->param('failed') ) {
+ $where .= " AND statustext != '' ".
+ " AND statustext IS NOT NULL ".
+ " AND statustext != 'N/A' "
+}
+
+if ( $cgi->param('part_bill_event.payby') =~ /^(\w+)$/ ) {
+ $where .= " AND part_bill_event.payby = '$1' ";
+}