X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fdid_order.pm;h=c1b34c345ace12ee435e122875058a3a52bed7d0;hb=9b37fb82c94a480ef6af2f7b9a8b889d4381e703;hp=b138192f8a670c40beba0f3c6aa90c64718bcecd;hpb=59be9ba7caf1009a97af97156bbd700bffb18fd4;p=freeside.git diff --git a/FS/FS/did_order.pm b/FS/FS/did_order.pm index b138192f8..c1b34c345 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) 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