[freeside-commits] freeside/FS/FS discount_plan.pm, 1.1.2.3, 1.1.2.4

Ivan,,, ivan at wavetail.420.am
Tue Dec 20 15:50:52 PST 2011


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

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	discount_plan.pm 
Log Message:
fix 'Can't call method "setup" on an undefined value' error when using into rates together with term discounts, RT#15661

Index: discount_plan.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/discount_plan.pm,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -w -d -r1.1.2.3 -r1.1.2.4
--- discount_plan.pm	10 Dec 2011 01:29:46 -0000	1.1.2.3
+++ discount_plan.pm	20 Dec 2011 23:50:49 -0000	1.1.2.4
@@ -63,7 +63,7 @@
     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;



More information about the freeside-commits mailing list