[freeside-commits] freeside/httemplate/browse part_bill_event.cgi,
1.10, 1.11
Ivan,,,
ivan at wavetail.420.am
Fri Mar 31 15:22:10 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail:/tmp/cvs-serv21306
Modified Files:
part_bill_event.cgi
Log Message:
quick sort fix for billing events
Index: part_bill_event.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_bill_event.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- part_bill_event.cgi 1 Feb 2006 23:13:48 -0000 1.10
+++ part_bill_event.cgi 31 Mar 2006 23:22:08 -0000 1.11
@@ -31,13 +31,14 @@
foreach my $payby ( keys %payby ) {
my $oldfreq = '';
- my @payby_part_bill_event = grep { $payby eq $_->payby }
- sort { $a->freq cmp $b->freq # for now
- || $a->seconds <=> $b->seconds
- || $a->weight <=> $b->weight
- || $a->eventpart <=> $b->eventpart
- }
- @part_bill_event;
+ my @payby_part_bill_event =
+ grep { $payby eq $_->payby }
+ sort { ( $a->freq || '1d') cmp ( $b->freq || '1d' ) # for now
+ || $a->seconds <=> $b->seconds
+ || $a->weight <=> $b->weight
+ || $a->eventpart <=> $b->eventpart
+ }
+ @part_bill_event;
%>
More information about the freeside-commits
mailing list