X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fdiscount_plan.pm;h=3ae44c8d417493bca7acbafddb5845426d49d3a6;hp=4f97e3351dc99b5c59c61a4e053e720fb748b29d;hb=aed8ec35ccb9cdeb7ea0cb6ff2946f9d83d582f6;hpb=43d2e192dfed48adc33af02b2dd98d66d5813e33 diff --git a/FS/FS/discount_plan.pm b/FS/FS/discount_plan.pm index 4f97e3351..3ae44c8d4 100644 --- a/FS/FS/discount_plan.pm +++ b/FS/FS/discount_plan.pm @@ -63,7 +63,7 @@ sub new { my $recur = $cust_bill_pkg->recur || 0; if ( $freq eq '1' ) { # monthly recurring package - my $permonth = $part_pkg->base_recur_permonth || 0; + my $permonth = $part_pkg->base_recur_permonth($cust_pkg) || 0; my ($discount) = grep { $_->months == $months } map { $_->discount } $part_pkg->part_pkg_discount;