[freeside-commits] freeside/FS/FS/part_pkg voip_cdr.pm,1.61,1.62
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Apr 2 10:47:35 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv14510
Modified Files:
voip_cdr.pm
Log Message:
separate checkbox for enabling prorate feature
Index: voip_cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_cdr.pm,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- voip_cdr.pm 2 Apr 2009 15:46:49 -0000 1.61
+++ voip_cdr.pm 2 Apr 2009 17:47:33 -0000 1.62
@@ -55,9 +55,12 @@
'type' => 'checkbox',
},
- 'cutoff_day' => { 'name' => 'Billing Day (1 - 28) for prorating. Leave'.
- ' blank to charge full first month instead.',
- 'default' => '',
+ 'enable_prorate' => { 'name' => 'Enable prorating of the first month',
+ 'type' => 'checkbox',
+ },
+
+ 'cutoff_day' => { 'name' => 'Billing Day (1 - 28) for prorating ',
+ 'default' => '1',
},
'rating_method' => { 'name' => 'Region rating method',
@@ -180,7 +183,8 @@
},
'fieldorder' => [qw(
setup_fee recur_fee recur_temporality unused_credit
- cutoff_day rating_method ratenum ignore_unrateable
+ enable_prorate cutoff_day
+ rating_method ratenum ignore_unrateable
default_prefix
disable_src
domestic_prefix international_prefix
@@ -551,7 +555,7 @@
} #if ( $spool_cdr && length($downstream_cdr) )
if ($param->{'increment_next_bill'}) {
- if ( $self->option('cutoff_day', 1) ) {
+ if ( $self->option('enable_prorate', 1) ) {
$charges += $self->SUPER::calc_recur(@_);
} else {
$charges += $self->option('recur_fee')
More information about the freeside-commits
mailing list