summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-04-10 11:10:06 -0700
committerMark Wells <mark@freeside.biz>2015-04-10 11:10:06 -0700
commit9e138f11de764031d4b67ec2c87a5ccda2dd7fbc (patch)
tree07f43f12713035bb9994c17455816985ca3aa921 /FS
parentb91dcaf3fc07c23955ce571c2257df4efff2923a (diff)
quantities for setup fees on non-flat-rate packages, #13136
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_pkg/recur_Common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_pkg/recur_Common.pm b/FS/FS/part_pkg/recur_Common.pm
index 03d5c2cb2..3573cf1a7 100644
--- a/FS/FS/part_pkg/recur_Common.pm
+++ b/FS/FS/part_pkg/recur_Common.pm
@@ -34,7 +34,7 @@ sub calc_setup {
delete $param->{'setup_charge'};
}
- sprintf('%.2f', $charge - $discount);
+ sprintf('%.2f', ($cust_pkg->quantity || 1) * ($charge - $discount) );
}
sub cutoff_day {