projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97fb1b9
)
bug fix for discounts on setup fees, RT11512
author
levinse
<levinse>
Mon, 13 Jun 2011 21:25:10 +0000
(21:25 +0000)
committer
levinse
<levinse>
Mon, 13 Jun 2011 21:25:10 +0000
(21:25 +0000)
FS/FS/part_pkg/discount_Mixin.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/discount_Mixin.pm
b/FS/FS/part_pkg/discount_Mixin.pm
index
17e2f53
..
a789ab3
100644
(file)
--- 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'}