X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fsubscription.pm;h=0dfe049fe734c639b5432e25d1b6780b528d60e9;hp=3c5f96b89bf5dba0da8488c35b004545fc48e2ea;hb=b7cf1606a66cca95e3540f803ffa66d223f23a40;hpb=d3ce5efd1ec0e1a715a154696e2b0aa86e51c27b diff --git a/FS/FS/part_pkg/subscription.pm b/FS/FS/part_pkg/subscription.pm index 3c5f96b89..0dfe049fe 100644 --- a/FS/FS/part_pkg/subscription.pm +++ b/FS/FS/part_pkg/subscription.pm @@ -98,11 +98,11 @@ sub calc_recur { $$sdate = timelocal(0,0,0,$cutoff_day,$mon,$year); - my $br = $self->base_recur($cust_pkg); + my $br = $self->base_recur($cust_pkg, $sdate); my $discount = $self->calc_discount($cust_pkg, $sdate, $details, $param); - sprintf('%.2f', $br - $discount); + sprintf('%.2f', ($cust_pkg->quantity || 1) * ($br - $discount) ); } 1;