diff options
author | levinse <levinse> | 2011-04-17 03:27:42 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-04-17 03:27:42 +0000 |
commit | 073169e80bea0560b64e468a76121bf837de34f3 (patch) | |
tree | 9beb2f6069f62d28032311e5f9fdb567fcb4330e /FS | |
parent | 0bce81dcafbe1116a7dcd3254d58ebbebaf18ae9 (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 09ec94825..aa59e7dbd 100644 --- a/FS/FS/AccessRight.pm +++ b/FS/FS/AccessRight.pm @@ -152,6 +152,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 |