projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
720cf72
)
fix problem with expiring discounts, RT#6679
author
ivan
<ivan>
Tue, 3 Aug 2010 06:31:09 +0000
(06:31 +0000)
committer
ivan
<ivan>
Tue, 3 Aug 2010 06:31:09 +0000
(06:31 +0000)
FS/FS/part_pkg/flat.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/flat.pm
b/FS/FS/part_pkg/flat.pm
index
6db6eee
..
cc23105
100644
(file)
--- a/
FS/FS/part_pkg/flat.pm
+++ b/
FS/FS/part_pkg/flat.pm
@@
-192,7
+192,7
@@
sub calc_discount {
my $months = $discount->months
? min( $chg_months,
- $discount->months - $cust_pkg->months_used )
+ $discount->months - $cust_pkg
_discount
->months_used )
: $chg_months;
my $error = $cust_pkg_discount->increment_months_used($months);