projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d55b0bc
)
fix annual discounts, RT#12977
author
ivan
<ivan>
Fri, 3 Jun 2011 17:07:59 +0000
(17:07 +0000)
committer
ivan
<ivan>
Fri, 3 Jun 2011 17:07:59 +0000
(17:07 +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
d97e180
..
17e2f53
100644
(file)
--- a/
FS/FS/part_pkg/discount_Mixin.pm
+++ b/
FS/FS/part_pkg/discount_Mixin.pm
@@
-41,7
+41,7
@@
discount and generates an invoice detail describing it.
sub calc_discount {
my($self, $cust_pkg, $sdate, $details, $param ) = @_;
sub calc_discount {
my($self, $cust_pkg, $sdate, $details, $param ) = @_;
- my $br = $self->base_recur($cust_pkg, $sdate);
+ my $br = $self->base_recur
_permonth
($cust_pkg, $sdate);
$br += $param->{'override_charges'} if $param->{'override_charges'};
my $tot_discount = 0;
$br += $param->{'override_charges'} if $param->{'override_charges'};
my $tot_discount = 0;