X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Frecur_Common.pm;h=8ed9eb6af50ec8017ef78354a8a815425752d5fd;hb=8a0204b4a129a3c26dcca18ba401b2de26d22d2b;hp=71f3af718b29bd050194a6875d5e6678f33fedfc;hpb=a67fd3bbfeec137ebf494e36eaa920145b8509a1;p=freeside.git diff --git a/FS/FS/part_pkg/recur_Common.pm b/FS/FS/part_pkg/recur_Common.pm index 71f3af718..8ed9eb6af 100644 --- a/FS/FS/part_pkg/recur_Common.pm +++ b/FS/FS/part_pkg/recur_Common.pm @@ -1,13 +1,15 @@ package FS::part_pkg::recur_Common; use strict; -use vars qw( @ISA %recur_method ); +use vars qw( @ISA %info %recur_method ); use Tie::IxHash; use Time::Local; use FS::part_pkg::prorate; @ISA = qw(FS::part_pkg::prorate); +%info = ( 'disabled' => 1 ); #recur_Common not a usable price plan directly + tie %recur_method, 'Tie::IxHash', 'anniversary' => 'Charge the recurring fee at the frequency specified above', 'prorate' => 'Charge a prorated fee the first time (selectable billing date)', @@ -46,6 +48,8 @@ sub calc_recur_Common { }#$recur_method eq 'subscription' + $charges -= $self->calc_discount( $cust_pkg, $sdate, $details, $param ); + }#$recur_method eq 'prorate' }#increment_next_bill