X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fdiscount_Mixin.pm;h=31802758cc537b5c2da32a32c4dbb7db55345d5b;hb=f673db50d866ac1b64bb80b09bd81071d089bf41;hp=50b331236121ed9ad82562f03fbeae26b9b8bec0;hpb=014e2c547f63bcd283eac4d0210a7976ca5fcb90;p=freeside.git 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);