diff options
| author | ivan <ivan> | 2008-03-26 18:18:40 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2008-03-26 18:18:40 +0000 | 
| commit | 1783fdb03ace7f8bc0b5236d1b3cd842753fd16d (patch) | |
| tree | a2c05d7e395986fd70f37efe5b6d7d47c4f8fc8c | |
| parent | d9a8f186ad87e9b19da7383f88ab5eb0b614a138 (diff) | |
add a netcredits_12mo sub so that 12mo checkbox works again... sure do need these to be auto-generated or $AUTOLOADED or something :)
| -rw-r--r-- | FS/FS/Report/Table/Monthly.pm | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/Report/Table/Monthly.pm b/FS/FS/Report/Table/Monthly.pm index 746362008..6daa02637 100644 --- 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 {  | 
