diff options
author | levinse <levinse> | 2011-04-17 03:28:12 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-04-17 03:28:12 +0000 |
commit | fe54b392480244e9486603b162902acd2144bbc6 (patch) | |
tree | f91678656f227d65035c5d539c00f7d7c3dc8f32 /FS | |
parent | ac2a516d126ab23b46138a6b930545fecc633943 (diff) |
bulk DID orders/inventory enhancements, RT11291
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/AccessRight.pm | 1 | ||||
-rw-r--r-- | FS/FS/did_order.pm | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/FS/FS/AccessRight.pm b/FS/FS/AccessRight.pm index a265748fc..773f66802 100644 --- a/FS/FS/AccessRight.pm +++ b/FS/FS/AccessRight.pm @@ -151,6 +151,7 @@ tie my %rights, 'Tie::IxHash', 'Customer service rights' => [ 'View customer services', #NEW 'Provision customer service', + 'Bulk provision customer service', 'Recharge customer service', #NEW 'Unprovision customer service', 'Change customer service', #NEWNEW 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<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 |