[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.42,1.43

Ivan,,, ivan at wavetail.420.am
Mon Aug 2 23:31:11 PDT 2010


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

Modified Files:
	flat.pm 
Log Message:
fix problem with expiring discounts, RT#6679

Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -w -d -r1.42 -r1.43
--- flat.pm	1 Apr 2010 08:10:05 -0000	1.42
+++ flat.pm	3 Aug 2010 06:31:09 -0000	1.43
@@ -192,7 +192,7 @@
      
      my $months = $discount->months
                     ? min( $chg_months,
-                           $discount->months - $cust_pkg->months_used )
+                           $discount->months - $cust_pkg_discount->months_used )
                     : $chg_months;
 
      my $error = $cust_pkg_discount->increment_months_used($months);



More information about the freeside-commits mailing list