diff options
author | levinse <levinse> | 2011-06-13 21:25:09 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-06-13 21:25:09 +0000 |
commit | e86ec47d33949f62f58a05c2dddd17c054a9034d (patch) | |
tree | 95c7cdf41e27826896580e0da81e0443ea273f07 | |
parent | 80c705e3125aab7a6d2aa43ac5df8b25bb4f5f92 (diff) |
bug fix for discounts on setup fees, RT11512
-rw-r--r-- | FS/FS/part_pkg/discount_Mixin.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/discount_Mixin.pm b/FS/FS/part_pkg/discount_Mixin.pm index 17e2f5344..a789ab309 100644 --- a/FS/FS/part_pkg/discount_Mixin.pm +++ b/FS/FS/part_pkg/discount_Mixin.pm @@ -120,6 +120,9 @@ sub calc_discount { $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'} |