- WHERE ". join(' AND ', @tax_where);
-
- # now do something with that
- if ( @exempt_where ) {
-
- push @where, 'item_exempt.billpkgnum IS NOT NULL';
- push @select, 'item_exempt.exempt_amount';
- push @peritem, 'exempt_amount';
- push @peritem_desc, 'Exempt';
- push @total, 'SUM(exempt_amount)';
- push @total_desc, "$money_char%.2f tax-exempt";
+ WHERE ". join(' AND ', @tax_where).
+ " GROUP BY taxable_billpkgnum";