diff options
author | levinse <levinse> | 2011-01-08 00:42:36 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-01-08 00:42:36 +0000 |
commit | 262e07f22cd3f79e191456503cf6da2d34d00626 (patch) | |
tree | ee4b0b8cbbf386dbda5bd93ad4ad5524bcb5177b | |
parent | 8ae589024036a94bb71da0e05f645b00697e271f (diff) |
Vitelity DID provisioning, change RC sorting, RT4868
-rw-r--r-- | FS/FS/part_export/vitelity.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FS/FS/part_export/vitelity.pm b/FS/FS/part_export/vitelity.pm index 7803b3fab..1aa71fa96 100644 --- 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 - return [ - map { $_->{'Hash'}->{name}.' ('. $_->npa. '-'. $_->nxx. '-XXXX)' } + @rc = map { $_->{'Hash'}->{name}.' ('. $_->npa. '-'. $_->nxx. '-XXXX)' } 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, @@ -73,8 +71,10 @@ sub get_dids { '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 |