[freeside-commits] freeside/FS/FS/part_pkg discount_Mixin.pm, 1.1.2.5, 1.1.2.6

Erik Levinson levinse at wavetail.420.am
Mon Jun 13 14:25:12 PDT 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	discount_Mixin.pm 
Log Message:
bug fix for discounts on setup fees, RT11512

Index: discount_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/discount_Mixin.pm,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -w -d -r1.1.2.5 -r1.1.2.6
--- discount_Mixin.pm	3 Jun 2011 17:08:00 -0000	1.1.2.5
+++ discount_Mixin.pm	13 Jun 2011 21:25:10 -0000	1.1.2.6
@@ -120,6 +120,9 @@
         $param->{'discount_left_recur'}{$discount->discountnum} = 0;
         $months = 1;
     }
+    elsif ( $discount->setup && $discount->months == 1 && $discount->amount ) {
+        next;
+    }
 
     my $error = $cust_pkg_discount->increment_months_used($months)
         if (defined $param->{'real_pkgpart'} 



More information about the freeside-commits mailing list