[freeside-commits] freeside/FS/FS/part_pkg discount_Mixin.pm, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Fri Jun 3 10:08:01 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv19617

Modified Files:
	discount_Mixin.pm 
Log Message:
fix annual discounts, RT#12977

Index: discount_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/discount_Mixin.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- discount_Mixin.pm	6 May 2011 00:30:07 -0000	1.5
+++ discount_Mixin.pm	3 Jun 2011 17:07:59 -0000	1.6
@@ -41,7 +41,7 @@
 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;



More information about the freeside-commits mailing list