projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add discount capability to sql_external, RT10481
[freeside.git]
/
FS
/
FS
/
part_pkg
/
discount_Mixin.pm
diff --git
a/FS/FS/part_pkg/discount_Mixin.pm
b/FS/FS/part_pkg/discount_Mixin.pm
index
df65e97
..
a0bdcee
100644
(file)
--- a/
FS/FS/part_pkg/discount_Mixin.pm
+++ b/
FS/FS/part_pkg/discount_Mixin.pm
@@
-42,6
+42,7
@@
sub calc_discount {
my($self, $cust_pkg, $sdate, $details, $param ) = @_;
my $br = $self->base_recur($cust_pkg);
my($self, $cust_pkg, $sdate, $details, $param ) = @_;
my $br = $self->base_recur($cust_pkg);
+ $br += $param->{'override_charges'} if $param->{'override_charges'};
my $tot_discount = 0;
#UI enforces just 1 for now, will need ordering when they can be stacked
my $tot_discount = 0;
#UI enforces just 1 for now, will need ordering when they can be stacked