diff options
| author | levinse <levinse> | 2011-05-10 02:47:35 +0000 | 
|---|---|---|
| committer | levinse <levinse> | 2011-05-10 02:47:35 +0000 | 
| commit | f6036d1338eb1df0fa5c58d358e52d770a7e0330 (patch) | |
| tree | d454239b034a37809f140ac5a891314ad705d863 | |
| parent | f7baea86e2cbb33697aed8287bc32d744accf662 (diff) | |
Fix UI issues in accountcode billing implementation, RT12181
| -rw-r--r-- | FS/FS/cust_bill.pm | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 1f6af40b4..0ba6cdfed 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -4151,7 +4151,6 @@ sub _items_accountcode_cdr {                      'description'   => 'Usage by Account Code',                      'post_total'    => '',                      'summarized'    => '', -                    'total_generator' => sub { '' },                      'header'        => '',                    };      my @lines; @@ -4188,6 +4187,7 @@ sub _items_accountcode_cdr {                      ext_description => [],              }; +            $section->{'amount'} += $amount;              $accountcodes{$accountcode}{'amount'} += $amount;              $accountcodes{$accountcode}{calls}++;              $accountcodes{$accountcode}{duration} += $detail->duration; @@ -4202,7 +4202,9 @@ sub _items_accountcode_cdr {          push @lines, $l;      } -    return ($section,\@lines); +    my @sorted_lines = sort { $a->{'description'} <=> $b->{'description'} } @lines; + +    return ($section,\@sorted_lines);  }  sub _items_svc_phone_sections { | 
