summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-11 07:04:47 +0000
committerivan <ivan>2011-04-11 07:04:47 +0000
commit8ee4884ec6aaff194b7be247d6a6327ad5871f7f (patch)
tree94b061606ab2c9b12a7784a9c6f4763eba447e93
parentfb2e6e84383d661db034ef291394b5c9d82e23f4 (diff)
fix error on detail for "tax collected" on vendor tax report, RT#12320
-rw-r--r--httemplate/search/cust_bill_pkg.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi
index 0db4b35da..9918cf1a3 100644
--- a/httemplate/search/cust_bill_pkg.cgi
+++ b/httemplate/search/cust_bill_pkg.cgi
@@ -476,7 +476,7 @@ if ( $cgi->param('pkg_tax') ) {
} elsif ( $unearned ) {
$count_query .= "SUM(cust_bill_pkg.recur)";
} elsif ( scalar( grep( /locationtaxid/, $cgi->param ) ) ) {
- $count_query .= "SUM( COALESCE(cust_bill_pkg_tax_location.amount, cust_bill_pkg.setup + cust_bill_pkg.recur))";
+ $count_query .= "SUM( COALESCE(cust_bill_pkg_tax_rate_location.amount, cust_bill_pkg.setup + cust_bill_pkg.recur))";
} elsif ( $cgi->param('iscredit') eq 'rate') {
$count_query .= "SUM( cust_credit_bill_pkg.amount )";
} else {