summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Schema.pm1
-rw-r--r--FS/FS/phone_avail.pm10
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