summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-10-27 16:28:32 -0700
committerMark Wells <mark@freeside.biz>2015-10-27 16:40:23 -0700
commit244094fbbcff3a9121c4a244ba4e85ef5366c706 (patch)
tree6bd5830c9fc23a94f05fb647f47474eeed6d2b01
parente26187f37c2a2ad4ad199422faf9f32a0454b923 (diff)
fix interaction of percentage discount and quantity, #19354, etc.
-rw-r--r--FS/FS/part_pkg/discount_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/discount_Mixin.pm b/FS/FS/part_pkg/discount_Mixin.pm
index 1e39f6aef..dcca3436f 100644
--- a/FS/FS/part_pkg/discount_Mixin.pm
+++ b/FS/FS/part_pkg/discount_Mixin.pm
@@ -145,7 +145,7 @@ sub calc_discount {
# XXX it would be more accurate for calc_recur to just _tell us_ what
# it's going to charge
- my $recur_charge = $br * ($cust_pkg->quantity || 1) * $chg_months / $self->freq;
+ my $recur_charge = $br * $chg_months / $self->freq;
# round this, because the real recur charge is rounded
$recur_charge = sprintf('%.2f', $recur_charge);