diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-02-04 00:50:38 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-02-04 00:50:38 -0800 |
| commit | 330c49dfeabc23f3340bdf6828ee1330f1f515d8 (patch) | |
| tree | 4dd40375c0931365bcbde43647398f43bdddbb82 | |
| parent | d614be860df82d5e350a8c9e6c64dd4376fc20d6 (diff) | |
better invoice summary, RT#20601
| -rw-r--r-- | FS/FS/cust_bill.pm | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 77126cc7f..19db2a0b9 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} ) { |
