X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fbase_rate.pm;h=64636d9aece4dcb987645ff1d25afd65837dfaad;hb=c545a57d21341c49674defed65a4243f07b5ebaf;hp=9e64184ab7de21f38259481d2d3d7fd02cf1d4fd;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/FS/FS/part_pkg/base_rate.pm b/FS/FS/part_pkg/base_rate.pm index 9e64184ab..64636d9ae 100644 --- a/FS/FS/part_pkg/base_rate.pm +++ b/FS/FS/part_pkg/base_rate.pm @@ -9,6 +9,9 @@ use FS::part_pkg; %info = ( 'name' => 'Base rate (anniversary billing, Times units ordered)', + # XXX it multiplies recurring fee by cust_pkg option "units", how to + # express that + 'shortname' => 'Bulk (manual from "units" option)', 'fields' => { 'setup_fee' => { 'name' => 'Setup fee for this package', 'default' => 0, @@ -26,7 +29,7 @@ use FS::part_pkg; }, 'fieldorder' => [ 'setup_fee', 'recur_fee', 'unused_credit', 'externalid' ], - 'weight' => 10, + 'weight' => 52, ); sub calc_setup { @@ -43,7 +46,6 @@ sub calc_setup { sub calc_recur { my($self, $cust_pkg) = @_; - $self->reset_usage($cust_pkg); $self->base_recur($cust_pkg); } @@ -91,12 +93,4 @@ sub is_prepaid { 0; #no, we're postpaid } -sub reset_usage { - my($self, $cust_pkg) = @_; - my %values = map { $_, $self->option($_) } - grep { $self->option($_, 'hush') } - qw(seconds upbytes downbytes totalbytes); - $cust_pkg->set_usage(\%values); -} - 1;