[freeside-commits] freeside/FS/FS/part_pkg discount_Mixin.pm, 1.7, 1.8

Ivan,,, ivan at wavetail.420.am
Mon Jun 27 14:27:37 PDT 2011


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

Modified Files:
	discount_Mixin.pm 
Log Message:
fix over-discounting resulting in an error, RT#13450

Index: discount_Mixin.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/discount_Mixin.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- discount_Mixin.pm	13 Jun 2011 21:25:09 -0000	1.7
+++ discount_Mixin.pm	27 Jun 2011 21:27:35 -0000	1.8
@@ -130,6 +130,7 @@
             && ! defined $param->{'setup_charge'});
     die "error discounting: $error" if $error;
 
+    $amount = min($amount, $br);
     $amount *= $months;
     $amount = sprintf('%.2f', $amount);
 



More information about the freeside-commits mailing list