summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-11-16 21:20:37 -0800
committerMark Wells <mark@freeside.biz>2014-11-16 21:20:37 -0800
commitcd44a115510c3e0c88b64fe51baaba1e76d0e355 (patch)
treef6d8ae39e375b697f076ef4d4e9eadb61973d518
parente46ece7def297a50492a2c92f4fcd27584370fd7 (diff)
fix discounts in general, #31273
-rw-r--r--FS/FS/part_pkg/discount_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
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);