From 2def4560aa1f78ac741bfa74297404ad64165b8b Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sun, 16 Nov 2014 21:19:25 -0800 Subject: [PATCH] fix discounts in general, #31273 --- FS/FS/part_pkg/discount_Mixin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/part_pkg/discount_Mixin.pm b/FS/FS/part_pkg/discount_Mixin.pm index 50b331236..31802758c 100644 --- a/FS/FS/part_pkg/discount_Mixin.pm +++ b/FS/FS/part_pkg/discount_Mixin.pm @@ -162,6 +162,7 @@ sub calc_discount { 'months' => $months, }; push @{ $param->{'discounts'} }, $cust_bill_pkg_discount; + $tot_discount += $amount; #add details on discount to invoice # no longer! this is now done during rendering based on the existence @@ -189,7 +190,6 @@ sub calc_discount { #push @$details, $d; #push @$details, sprintf( $format, $money_char, $br ); - #$tot_discount += $amount; } sprintf('%.2f', $tot_discount); -- 2.11.0