push @where, ' taxclass = '. dbh->quote( $cgi->param('taxclass') )
if $cgi->param('taxclass');
+ if ( $cgi->param('taxclassNULL') ) {
+ my $same_sql = $r->sql_taxclass_sameregion;
+ push @where, $same_sql if $same_sql;
+ }
+
}
push @where, 'pkgnum != 0' if $cgi->param('nottax');
FS::UI::Web::cust_sql_fields(),
),
'extra_sql' => $where,
- 'order_by' => 'ORDER BY _date',
+ 'order_by' => 'ORDER BY _date, billpkgnum',
};
my $ilink = [ "${p}view/cust_bill.cgi?", 'invnum' ];