From: Mark Wells Date: Fri, 10 Apr 2015 18:10:06 +0000 (-0700) Subject: quantities for setup fees on non-flat-rate packages, #13136 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9e138f11de764031d4b67ec2c87a5ccda2dd7fbc quantities for setup fees on non-flat-rate packages, #13136 --- 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 {