[freeside-commits] freeside/FS/FS cust_bill.pm,1.339,1.340
Erik Levinson
levinse at wavetail.420.am
Mon May 9 19:47:38 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv11260/FS/FS
Modified Files:
cust_bill.pm
Log Message:
Fix UI issues in accountcode billing implementation, RT12181
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.339
retrieving revision 1.340
diff -u -w -d -r1.339 -r1.340
--- cust_bill.pm 9 May 2011 20:07:31 -0000 1.339
+++ cust_bill.pm 10 May 2011 02:47:35 -0000 1.340
@@ -4151,7 +4151,6 @@
'description' => 'Usage by Account Code',
'post_total' => '',
'summarized' => '',
- 'total_generator' => sub { '' },
'header' => '',
};
my @lines;
@@ -4188,6 +4187,7 @@
ext_description => [],
};
+ $section->{'amount'} += $amount;
$accountcodes{$accountcode}{'amount'} += $amount;
$accountcodes{$accountcode}{calls}++;
$accountcodes{$accountcode}{duration} += $detail->duration;
@@ -4202,7 +4202,9 @@
push @lines, $l;
}
- return ($section,\@lines);
+ my @sorted_lines = sort { $a->{'description'} <=> $b->{'description'} } @lines;
+
+ return ($section,\@sorted_lines);
}
sub _items_svc_phone_sections {
More information about the freeside-commits
mailing list