projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9a8f18
)
add a netcredits_12mo sub so that 12mo checkbox works again... sure do need these...
author
ivan
<ivan>
Wed, 26 Mar 2008 18:18:40 +0000
(18:18 +0000)
committer
ivan
<ivan>
Wed, 26 Mar 2008 18:18:40 +0000
(18:18 +0000)
FS/FS/Report/Table/Monthly.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Report/Table/Monthly.pm
b/FS/FS/Report/Table/Monthly.pm
index
7463620
..
6daa026
100644
(file)
--- a/
FS/FS/Report/Table/Monthly.pm
+++ b/
FS/FS/Report/Table/Monthly.pm
@@
-274,6
+274,12
@@
sub credits_12mo {
$self->credits($speriod, $eperiod, $agentnum);
}
+sub netcredits_12mo {
+ my( $self, $speriod, $eperiod, $agentnum ) = @_;
+ $speriod = $self->_subtract_11mo($speriod);
+ $self->netcredits($speriod, $eperiod, $agentnum);
+}
+
#not being too bad with the false laziness
use Time::Local qw(timelocal);
sub _subtract_11mo {