summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-11 07:04:46 +0000
committerivan <ivan>2011-04-11 07:04:46 +0000
commit25353c2067b60343e0c17ebc956a4d35baf1dbb4 (patch)
treea6ea10c5e297022734b7a847b5a122306386da02
parent1bb612df42aec08974f67ff333a5e0d2a2fc3ba3 (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 ed0c8d497..975d02a5a 100644
--- a/httemplate/search/cust_bill_pkg.cgi
+++ b/httemplate/search/cust_bill_pkg.cgi
@@ -463,7 +463,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 {