quantities for setup fees on non-flat-rate packages, #13136
authorMark Wells <mark@freeside.biz>
Thu, 9 Apr 2015 02:09:36 +0000 (19:09 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 10 Apr 2015 05:55:30 +0000 (22:55 -0700)
FS/FS/part_pkg/recur_Common.pm

index ebf8869..b73c62c 100644 (file)
@@ -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 {