diff options
author | levinse <levinse> | 2010-12-26 04:09:26 +0000 |
---|---|---|
committer | levinse <levinse> | 2010-12-26 04:09:26 +0000 |
commit | 7353f670ef61e617a9dfb6c258907eb70e0345f6 (patch) | |
tree | 8edcaf56f44a9de5b7bbc5e76c0b7a6641480616 /fs_selfservice | |
parent | 50053b94beac4aef39ddc007c851184649d49564 (diff) |
added basic LNP capability to svc_phone including SS, RT10948
Diffstat (limited to 'fs_selfservice')
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/provision_svc_phone.html | 26 | ||||
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/selfservice.cgi | 27 | ||||
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/ws_list.html | 6 |
3 files changed, 49 insertions, 10 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/provision_svc_phone.html b/fs_selfservice/FS-SelfService/cgi/provision_svc_phone.html index 3ca7a1222..ab9827e93 100644 --- a/fs_selfservice/FS-SelfService/cgi/provision_svc_phone.html +++ b/fs_selfservice/FS-SelfService/cgi/provision_svc_phone.html @@ -1,6 +1,15 @@ -<%= $url = "$selfurl?session=$session_id;action="; ''; %> -<%= include('header', 'Setup phone number') %> +<%= $url = "$selfurl?session=$session_id;action="; + $heading2 = $lnp ? "Port-In Number" : "Setup phone number"; + ''; +%> +<%= include('header', $heading2) %> <%= + +sub lnp_textfield { + my ($name,$label) = (shift,shift); + qq!<tr><td>$label</td><td><input type="text" name="$name"></td></tr>!; +} + if($error) { $OUT .= qq!<div style="color:red; font-size: 115%">$error</div>!; } @@ -12,10 +21,21 @@ if($error) { <INPUT TYPE="hidden" NAME="pkgnum" VALUE="<%= $pkgnum %>"> <INPUT TYPE="hidden" NAME="svcpart" VALUE="<%= $svcpart %>"> <INPUT TYPE="hidden" NAME="numavail" VALUE="<%= $numavail %>"> -<%= didselector('field' => 'phonenum', +<%= +if($lnp) { + $OUT .= "<table>" + . qq!<input type="hidden" name="lnp" value="1">! + . lnp_textfield(phonenum,"Phone Number") + . lnp_textfield("lnp_desired_due_date","Requested Port-In Date") + . lnp_textfield("lnp_other_provider","Current Provider") + . lnp_textfield("lnp_other_provider_account","Current Provider's Account #") + . "</table>"; +} else { + didselector('field' => 'phonenum', 'svcpart' => $svcpart, 'bulknum' => $numavail, ); +} %> <BR><BR><INPUT TYPE="submit" VALUE="Setup"> </FORM> diff --git a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi index 0d3bed8f9..5b2d2980c 100644 --- a/fs_selfservice/FS-SelfService/cgi/selfservice.cgi +++ b/fs_selfservice/FS-SelfService/cgi/selfservice.cgi @@ -710,6 +710,7 @@ sub provision_svc { $action .= "_$1"; $result->{'numavail'} = $cgi->param('numavail'); + $result->{'lnp'} = $cgi->param('lnp'); $result; } @@ -717,13 +718,25 @@ sub provision_svc { sub process_svc_phone { my @bulkdid = $cgi->param('bulkdid'); my $phonenum = $cgi->param('phonenum'); - - my $result = provision_phone ( - 'session_id' => $session_id, - 'bulkdid' => [ @bulkdid ], - 'countrycode' => '1', - map { $_ => $cgi->param($_) } qw( pkgnum svcpart phonenum ) - ); + my $lnp = $cgi->param('lnp'); + + my $result; + if($lnp) { + $result = provision_phone ( + 'session_id' => $session_id, + 'countrycode' => '1', + map { $_ => $cgi->param($_) } qw( pkgnum svcpart phonenum + lnp_desired_due_date lnp_other_provider + lnp_other_provider_account ) + ); + } else { + $result = provision_phone ( + 'session_id' => $session_id, + 'bulkdid' => [ @bulkdid ], + 'countrycode' => '1', + map { $_ => $cgi->param($_) } qw( pkgnum svcpart phonenum ) + ); + } if ( exists $result->{'error'} && $result->{'error'} ) { $action = 'provision_svc_phone'; diff --git a/fs_selfservice/FS-SelfService/cgi/ws_list.html b/fs_selfservice/FS-SelfService/cgi/ws_list.html index 6b23b7dcb..2bdcd741d 100644 --- a/fs_selfservice/FS-SelfService/cgi/ws_list.html +++ b/fs_selfservice/FS-SelfService/cgi/ws_list.html @@ -57,6 +57,12 @@ if ( $pkgpart ) { . qq!$part_svc->{'svc'}</A> ($part_svc->{'num_avail'}! . qq! available)<BR><BR>!; $OUT .= $link if $part_svc->{'can_get_dids'}; + + if($part_svc->{'svcdb'} eq 'svc_phone' && $lnp) { + $OUT .= qq!<A HREF="${url}provision_svc;lnp=1;! + . qq!pkgnum=$pkg->{'pkgnum'};svcpart=$part_svc->{'svcpart'}! + . qq!">Port-In $part_svc->{'svc'}</A>!; + } } $OUT .= "</TD></TR>"; |