projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2103a18
)
unbreak package churn report, fallout from #15393
author
mark
<mark>
Fri, 3 Feb 2012 20:24:47 +0000
(20:24 +0000)
committer
mark
<mark>
Fri, 3 Feb 2012 20:24:47 +0000
(20:24 +0000)
FS/FS/Report/Table.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Report/Table.pm
b/FS/FS/Report/Table.pm
index
b5805e3
..
9d85b9d
100644
(file)
--- a/
FS/FS/Report/Table.pm
+++ b/
FS/FS/Report/Table.pm
@@
-546,12
+546,12
@@
sub cust_bill_pkg_discount {
}
}
-sub setup_pkg { shift->pkg_field(
@_, 'setup'
); }
-sub susp_pkg { shift->pkg_field(
@_, 'susp'
); }
-sub cancel_pkg { shift->pkg_field(
@_, 'cancel'
); }
+sub setup_pkg { shift->pkg_field(
'setup', @_
); }
+sub susp_pkg { shift->pkg_field(
'susp', @_
); }
+sub cancel_pkg { shift->pkg_field(
'cancel', @_
); }
sub pkg_field {
sub pkg_field {
- my( $self, $
speriod, $eperiod, $agentnum, $field
) = @_;
+ my( $self, $
field, $speriod, $eperiod, $agentnum
) = @_;
$self->scalar_sql("
SELECT COUNT(*) FROM cust_pkg
LEFT JOIN cust_main USING ( custnum )
$self->scalar_sql("
SELECT COUNT(*) FROM cust_pkg
LEFT JOIN cust_main USING ( custnum )