X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Finternal_diddb.pm;h=8771ae88327203173c7ebee37506772ef6a6f787;hp=bb974332809411a90538a39eda2d815a05ab67d6;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=4a7d77be7b7ddf76dd9cdd674d04104ee990b0e4 diff --git a/FS/FS/part_export/internal_diddb.pm b/FS/FS/part_export/internal_diddb.pm index bb9743328..8771ae883 100644 --- a/FS/FS/part_export/internal_diddb.pm +++ b/FS/FS/part_export/internal_diddb.pm @@ -81,7 +81,7 @@ sub get_dids { }) ]; - } elsif ( $opt{'state'} ) { #return aracodes + } elsif ( $opt{'state'} ) { #return areacodes $hash{state} = $opt{state}; @@ -94,7 +94,15 @@ sub get_dids { ]; } else { - die "FS::part_export::internal_diddb::get_dids called without options\n"; + + #die "FS::part_export::internal_diddb::get_dids called without options\n"; + return [ map { $_->npa. '-'. $_->nxx. '-'. $_->station } + qsearch({ 'table' => 'phone_avail', + 'hashref' => \%hash, + 'order_by' => 'ORDER BY station', + }) + ]; + } }