diff options
author | ivan <ivan> | 2010-04-01 07:39:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-04-01 07:39:23 +0000 |
commit | b66775c3f693b5204d8f88afba17cb2aeae05120 (patch) | |
tree | 90aea5702c657443a122d8ec6de1cb5da052d0e9 /FS | |
parent | 35cff72e48d004b309409cac03e667463a558022 (diff) |
fix nasty discount fallout (i hope)
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_pkg/flat.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index e25c28c72..8cffaffa7 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -182,7 +182,8 @@ sub calc_discount { 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; |