projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
184cfcd
)
fix sales report detail links when using "Separate rated usage from recurring feeds...
author
ivan
<ivan>
Tue, 15 Mar 2011 00:46:39 +0000
(
00:46
+0000)
committer
ivan
<ivan>
Tue, 15 Mar 2011 00:46:39 +0000
(
00:46
+0000)
httemplate/search/cust_bill_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_bill_pkg.cgi
b/httemplate/search/cust_bill_pkg.cgi
index
b974304
..
a87e446
100644
(file)
--- a/
httemplate/search/cust_bill_pkg.cgi
+++ b/
httemplate/search/cust_bill_pkg.cgi
@@
-463,8
+463,11
@@
if ( $cgi->param('pkg_tax') ) {
} else {
- #$count_query = "SELECT COUNT(*), ";
- $count_query = "SELECT COUNT(DISTINCT billpkgnum), ";
+ if ( $use_usage ) {
+ $count_query = "SELECT COUNT(*), ";
+ } else {
+ $count_query = "SELECT COUNT(DISTINCT billpkgnum), ";
+ }
if ( $use_usage eq 'recurring' ) {
$count_query .= "SUM(setup + recur - usage)";