X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Frecur_Common.pm;h=48e9307c41fbb3de23b6d585c6a9218015f31a64;hb=67779831c7ac1bb6d65073a0e523453dacf751c6;hp=719fb234e846cbec8828335319db05e2c177fa9f;hpb=ca3c2d180e6005dc10c1492b60e847ad32c99c57;p=freeside.git diff --git a/FS/FS/part_pkg/recur_Common.pm b/FS/FS/part_pkg/recur_Common.pm index 719fb234e..48e9307c4 100644 --- a/FS/FS/part_pkg/recur_Common.pm +++ b/FS/FS/part_pkg/recur_Common.pm @@ -19,6 +19,13 @@ sub base_recur { $self->option('recur_fee', 1) || 0; } +sub calc_setup { + # moved from all descendant packages which just had $self->option('setup_fee') + my($self, $cust_pkg, $sdate, $details, $param) = @_; + return 0 if $self->prorate_setup($cust_pkg, $sdate); + $self->option('setup_fee'); +} + sub cutoff_day { # prorate/subscription only; we don't support sync_bill_date here my $self = shift;