diff options
author | levinse <levinse> | 2011-06-21 03:16:59 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-06-21 03:16:59 +0000 |
commit | 2431a359ebac3576ab7875f787e731a0e63211d9 (patch) | |
tree | 71dc63f40e1894c0d6715c701a199af31d163ac1 /FS | |
parent | ca12a227e21d6d2597f2dce860604aea02257621 (diff) |
improve performance of DID provisioning status report, RT10988
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Schema.pm | 1 | ||||
-rw-r--r-- | FS/FS/phone_avail.pm | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 65ec2a8..035965e 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -3156,6 +3156,7 @@ sub tables_hashref { [ 'exportnum', 'countrycode', 'npa', 'nxx', 'station' ], # # [ 'svcnum' ], [ 'availbatch' ], + [ 'latanum' ], ], }, diff --git a/FS/FS/phone_avail.pm b/FS/FS/phone_avail.pm index 44421ff..cd4b4b6 100644 --- a/FS/FS/phone_avail.pm +++ b/FS/FS/phone_avail.pm @@ -182,6 +182,16 @@ sub part_export { qsearchs('part_export', { 'exportnum' => $self->exportnum }); } +=item lata + +=cut + +sub lata { + my $self = shift; + return '' unless $self->latanum; + qsearchs('lata', { 'latanum' => $self->latanum }); +} + =item msa2msanum Translate free-form MSA name to a msa.msanum |