X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Frt_time.pm;h=11b7ee85c540f987b9b25e411b2c2f534d7d1e48;hb=f3e0ac2b009c4edd5692cb587ff709dac2223ebe;hp=03ed1cde769f93752598d061f8fd3446b7fd835b;hpb=d3ce5efd1ec0e1a715a154696e2b0aa86e51c27b;p=freeside.git diff --git a/FS/FS/part_pkg/rt_time.pm b/FS/FS/part_pkg/rt_time.pm index 03ed1cde7..11b7ee85c 100644 --- a/FS/FS/part_pkg/rt_time.pm +++ b/FS/FS/part_pkg/rt_time.pm @@ -24,6 +24,14 @@ our %info = ( 'fieldorder' => [ 'base_rate' ], ); +sub price_info { + my $self = shift; + my $str = $self->SUPER::price_info; + my $rate = $self->option('base_rate'); + $str .= " plus $rate/min" if $rate; + $str; +} + sub calc_setup { my($self, $cust_pkg ) = @_; $self->option('setup_fee'); @@ -44,12 +52,13 @@ sub calc_recur { sub can_discount { 0; } -sub calc_cancel { - my $self = shift; - my($cust_pkg, $sdate, $details, $param ) = @_; - - $self->calc_usage(@_); -} +# use the default +#sub calc_cancel { +# my $self = shift; +# my($cust_pkg, $sdate, $details, $param ) = @_; +# +# $self->calc_usage(@_); +#} sub calc_usage { my $self = shift;