fix discounts on one-time charges, #28956
authorMark Wells <mark@freeside.biz>
Mon, 17 Nov 2014 05:20:33 +0000 (21:20 -0800)
committerMark Wells <mark@freeside.biz>
Mon, 17 Nov 2014 05:20:33 +0000 (21:20 -0800)
FS/FS/cust_main/Billing.pm

index f65d495..9e2082f 100644 (file)
@@ -946,7 +946,9 @@ sub _make_lines {
   my $setup = 0;
   my $unitsetup = 0;
   my @setup_discounts = ();
-  my %setup_param = ( 'discounts' => \@setup_discounts );
+  my %setup_param = ( 'discounts'     => \@setup_discounts,
+                      'real_pkgpart'  => $params{real_pkgpart}
+                    );
   my $setup_billed_currency = '';
   my $setup_billed_amount = 0;
   # Conditions for setting setup date and charging the setup fee: