projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ae5890
)
Vitelity DID provisioning, change RC sorting, RT4868
author
levinse
<levinse>
Sat, 8 Jan 2011 00:42:36 +0000
(
00:42
+0000)
committer
levinse
<levinse>
Sat, 8 Jan 2011 00:42:36 +0000
(
00:42
+0000)
FS/FS/part_export/vitelity.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/vitelity.pm
b/FS/FS/part_export/vitelity.pm
index
7803b3f
..
1aa71fa
100644
(file)
--- a/
FS/FS/part_export/vitelity.pm
+++ b/
FS/FS/part_export/vitelity.pm
@@
-62,10
+62,8
@@
sub get_dids {
# you can't call $->name .... that returns "(unlinked)"
# and in any case this is still major abuse of encapsulation, it just happens to work for the other fields
# you can't call $->name .... that returns "(unlinked)"
# and in any case this is still major abuse of encapsulation, it just happens to work for the other fields
- return [
- map { $_->{'Hash'}->{name}.' ('. $_->npa. '-'. $_->nxx. '-XXXX)' }
+ @rc = map { $_->{'Hash'}->{name}.' ('. $_->npa. '-'. $_->nxx. '-XXXX)' }
qsearch({
qsearch({
- # i know this doesn't do the same thing as before, but now the sort works
'select' => 'DISTINCT npa,nxx,name',
'table' => 'phone_avail',
'hashref' => { 'exportnum' => $self->exportnum,
'select' => 'DISTINCT npa,nxx,name',
'table' => 'phone_avail',
'hashref' => { 'exportnum' => $self->exportnum,
@@
-73,8
+71,10
@@
sub get_dids {
'npa' => $opt{'areacode'},
},
'order_by' => 'ORDER BY nxx',
'npa' => $opt{'areacode'},
},
'order_by' => 'ORDER BY nxx',
- })
- ];
+ });
+
+ @sorted_rc = sort @rc;
+ return [ @sorted_rc ];
} elsif ( $opt{'state'} ) { #and not other things, then return areacode
} elsif ( $opt{'state'} ) { #and not other things, then return areacode