summaryrefslogtreecommitdiff
path: root/FS/FS/did_order.pm
diff options
context:
space:
mode:
authorlevinse <levinse>2011-04-17 03:27:42 +0000
committerlevinse <levinse>2011-04-17 03:27:42 +0000
commit073169e80bea0560b64e468a76121bf837de34f3 (patch)
tree9beb2f6069f62d28032311e5f9fdb567fcb4330e /FS/FS/did_order.pm
parent0bce81dcafbe1116a7dcd3254d58ebbebaf18ae9 (diff)
bulk DID orders/inventory enhancements, RT11291
Diffstat (limited to 'FS/FS/did_order.pm')
-rw-r--r--FS/FS/did_order.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/FS/FS/did_order.pm b/FS/FS/did_order.pm
index b138192..c1b34c3 100644
--- a/FS/FS/did_order.pm
+++ b/FS/FS/did_order.pm
@@ -186,6 +186,21 @@ sub cust_main {
qsearchs('cust_main', { 'custnum' => $self->custnum } );
}
+=item provisioned
+
+Returns the provisioned DIDs, if any, as phone_avail (see L<FS::phone_avail>) objects.
+
+=cut
+
+sub provisioned {
+ my $self = shift;
+ qsearch({ table => 'phone_avail',
+ hashref => { 'ordernum' => $self->ordernum, },
+ select => 'phone_avail.*',
+ extra_sql => ' and svcnum is not null ',
+ });
+}
+
=back
=head1 SEE ALSO