X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fsubscription.pm;h=825f5cad6d713aee8a9920160305f8708dd7a912;hb=9b6b116d4a492cb0edc31e53abf1fdb43be42d0e;hp=dbf6d797dea149313dd4694828e598a7fef988ee;hpb=e3dffa23a03cd9f88946ceb78bc75ada29bc013a;p=freeside.git diff --git a/FS/FS/part_pkg/subscription.pm b/FS/FS/part_pkg/subscription.pm index dbf6d797d..825f5cad6 100644 --- a/FS/FS/part_pkg/subscription.pm +++ b/FS/FS/part_pkg/subscription.pm @@ -103,7 +103,11 @@ sub calc_recur { $$sdate = timelocal(0,0,0,$cutoff_day,$mon,$year); - $self->option('recur_fee'); + my $br = $self->base_recur(@_); + + my $discount = $self->calc_discount(@_); + + sprintf('%.2f', $br - $discount); } 1;