[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 330c49dfeabc23f3340bdf6828ee1330f1f515d8
Ivan
ivan at 420.am
Mon Feb 4 00:50:41 PST 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 330c49dfeabc23f3340bdf6828ee1330f1f515d8 (commit)
from d614be860df82d5e350a8c9e6c64dd4376fc20d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 330c49dfeabc23f3340bdf6828ee1330f1f515d8
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Feb 4 00:50:38 2013 -0800
better invoice summary, RT#20601
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 77126cc..19db2a0 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -2987,10 +2987,11 @@ sub print_generic {
my $adjusttotal = 0;
- my $adjust_section = { 'description' =>
- $self->mt('Credits, Payments, and Adjustments'),
- 'subtotal' => 0, # adjusted below
- };
+ my $adjust_section = {
+ 'description' => $self->mt('Credits, Payments, and Adjustments'),
+ 'adjust_section' => 1,
+ 'subtotal' => 0, # adjusted below
+ };
my $adjust_weight = _pkg_category($adjust_section->{description})
? _pkg_category($adjust_section->{description})->weight
: 0;
@@ -3401,10 +3402,11 @@ sub print_generic {
$total->{'total_item'} = &$embolden_function($self->balance_due_msg);
$total->{'total_amount'} =
&$embolden_function(
- $other_money_char. sprintf('%.2f', $summarypage
- ? $self->charged +
- $self->billing_balance
- : $self->owed + $pr_total
+ $other_money_char. sprintf('%.2f', #why? $summarypage
+ # ? $self->charged +
+ # $self->billing_balance
+ # :
+ $self->owed + $pr_total
)
);
if ( $multisection && !$adjust_section->{sort_weight} ) {
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_bill.pm | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
More information about the freeside-commits
mailing list