diff options
author | Mark Wells <mark@freeside.biz> | 2014-11-16 21:19:01 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-11-16 21:19:01 -0800 |
commit | 985f90f7d699c7fea9669d10d905da5ae202c8dc (patch) | |
tree | 7647e73397ab3252b5a6f731ea625a11b5f80e1e | |
parent | 462a9a2808f839c1b4ab676ece47d4d1cebec2ef (diff) |
fix discounts on one-time charges, #28956
-rw-r--r-- | FS/FS/cust_main/Billing.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm index 2c41ecb67..a6810802e 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -1087,7 +1087,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} + ); # Conditions for setting setup date and charging the setup fee: # - this is not a recurring-only billing run # - and the package is not currently being canceled |