projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f7baea8
)
Fix UI issues in accountcode billing implementation, RT12181
author
levinse
<levinse>
Tue, 10 May 2011 02:47:35 +0000
(
02:47
+0000)
committer
levinse
<levinse>
Tue, 10 May 2011 02:47:35 +0000
(
02:47
+0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
1f6af40
..
0ba6cdf
100644
(file)
--- 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' => '',
'description' => 'Usage by Account Code',
'post_total' => '',
'summarized' => '',
- 'total_generator' => sub { '' },
'header' => '',
};
my @lines;
'header' => '',
};
my @lines;
@@
-4188,6
+4187,7
@@
sub _items_accountcode_cdr {
ext_description => [],
};
ext_description => [],
};
+ $section->{'amount'} += $amount;
$accountcodes{$accountcode}{'amount'} += $amount;
$accountcodes{$accountcode}{calls}++;
$accountcodes{$accountcode}{duration} += $detail->duration;
$accountcodes{$accountcode}{'amount'} += $amount;
$accountcodes{$accountcode}{calls}++;
$accountcodes{$accountcode}{duration} += $detail->duration;
@@
-4202,7
+4202,9
@@
sub _items_accountcode_cdr {
push @lines, $l;
}
push @lines, $l;
}
- return ($section,\@lines);
+ my @sorted_lines = sort { $a->{'description'} <=> $b->{'description'} } @lines;
+
+ return ($section,\@sorted_lines);
}
sub _items_svc_phone_sections {
}
sub _items_svc_phone_sections {