projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correctly handle percentage discounts with duration less than package billing cycle...
[freeside.git]
/
FS
/
FS
/
part_pkg
/
sql_external.pm
diff --git
a/FS/FS/part_pkg/sql_external.pm
b/FS/FS/part_pkg/sql_external.pm
index
4bf9ecb
..
be36c11
100644
(file)
--- a/
FS/FS/part_pkg/sql_external.pm
+++ b/
FS/FS/part_pkg/sql_external.pm
@@
-44,7
+44,7
@@
use DBI;
sub price_info {
my $self = shift;
sub price_info {
my $self = shift;
- my $str = $self->SUPER::price_info;
+ my $str = $self->SUPER::price_info
(@_)
;
$str .= " plus per-service charges" if $str;
$str;
}
$str .= " plus per-service charges" if $str;
$str;
}
@@
-71,7
+71,7
@@
sub calc_recur {
}
$param->{'override_charges'} = $price;
}
$param->{'override_charges'} = $price;
- $self->calc_recur_Common($cust_pkg,$sdate,$details,$param);
+
($cust_pkg->quantity || 1) *
$self->calc_recur_Common($cust_pkg,$sdate,$details,$param);
}
sub can_discount { 1; }
}
sub can_discount { 1; }