quantities for setup fees on non-flat-rate packages, #13136
authorMark Wells <mark@freeside.biz>
Fri, 10 Apr 2015 18:10:06 +0000 (11:10 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 10 Apr 2015 18:10:06 +0000 (11:10 -0700)
FS/FS/part_pkg/recur_Common.pm

index 03d5c2c..3573cf1 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 {