[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.40,1.41
Ivan,,,
ivan at wavetail.420.am
Thu Apr 1 00:39:25 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv24798
Modified Files:
flat.pm
Log Message:
fix nasty discount fallout (i hope)
Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -w -d -r1.40 -r1.41
--- flat.pm 9 Mar 2010 02:43:36 -0000 1.40
+++ flat.pm 1 Apr 2010 07:39:23 -0000 1.41
@@ -182,7 +182,8 @@
my $tot_discount = 0;
#UI enforces just 1 for now, will need ordering when they can be stacked
- foreach my $cust_pkg_discount ( $cust_pkg->cust_pkg_discount_active ) {
+ my @cust_pkg_discount = $cust_pkg->cust_pkg_discount_active;
+ foreach my $cust_pkg_discount ( @cust_pkg_discount ) {
my $discount = $cust_pkg_discount->discount;
#UI enforces one or the other (for now? probably for good)
my $amount = 0;
More information about the freeside-commits
mailing list