From: ivan Date: Fri, 3 Jun 2011 17:07:59 +0000 (+0000) Subject: fix annual discounts, RT#12977 X-Git-Tag: freeside_2_3_0~182 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=49ea5f3f188b474557417dd58bb59b7334c5837b;p=freeside.git fix annual discounts, RT#12977 --- diff --git a/FS/FS/part_pkg/discount_Mixin.pm b/FS/FS/part_pkg/discount_Mixin.pm index d97e18042..17e2f5344 100644 --- a/FS/FS/part_pkg/discount_Mixin.pm +++ b/FS/FS/part_pkg/discount_Mixin.pm @@ -41,7 +41,7 @@ discount and generates an invoice detail describing it. sub calc_discount { my($self, $cust_pkg, $sdate, $details, $param ) = @_; - my $br = $self->base_recur($cust_pkg, $sdate); + my $br = $self->base_recur_permonth($cust_pkg, $sdate); $br += $param->{'override_charges'} if $param->{'override_charges'}; my $tot_discount = 0;