diff options
author | Mark Wells <mark@freeside.biz> | 2014-11-16 21:20:33 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-11-16 21:20:33 -0800 |
commit | e46ece7def297a50492a2c92f4fcd27584370fd7 (patch) | |
tree | 073dbb184bab18a0c06996e872f94b10345f03e0 | |
parent | 77e772f611f080e537d5bc33a661e82dec0c3502 (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 f65d495cf..9e2082fc3 100644 --- a/FS/FS/cust_main/Billing.pm +++ b/FS/FS/cust_main/Billing.pm @@ -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: |