projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
985f90f
)
fix discounts in general, #31273
author
Mark Wells
<mark@freeside.biz>
Mon, 17 Nov 2014 05:19:25 +0000
(21:19 -0800)
committer
Mark Wells
<mark@freeside.biz>
Mon, 17 Nov 2014 05:19:25 +0000
(21:19 -0800)
FS/FS/part_pkg/discount_Mixin.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/discount_Mixin.pm
b/FS/FS/part_pkg/discount_Mixin.pm
index
50b3312
..
3180275
100644
(file)
--- 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);