1 <& elements/svc_Common.html,
2 'table' => 'svc_phone',
3 'args_callback' => $args_callback,
4 'value_callback' => $value_callback,
10 if ( $cgi->param('bulk') ) {
11 $opt{'bulk'} = 'phonenum';
13 my $cust_pkg = qsearchs('cust_pkg', { pkgnum=>scalar($cgi->param('pkgnum')) })
14 or die "unknown pkgnum";
15 my $custnum = $cust_pkg->custnum;
18 $FS::CurrentUser::CurrentUser->default_customer_view =~ /^(jumbo|packages)$/
21 #my $frag = "cust_pkg$pkgnum"; #hack for IE ignoring real #fragment
22 $opt{'redirect'}= popurl(3)."view/cust_main.cgi?custnum=$custnum$show;dummy=";
25 my $right = $opt{'bulk'} ? 'Bulk provision customer service'
26 : 'Provision customer service';
29 unless $FS::CurrentUser::CurrentUser->access_right($right);
31 my $tollfreephonenum = $cgi->param('tollfreephonenum');
32 $cgi->param('phonenum',$tollfreephonenum) if $tollfreephonenum =~ /^\d+$/;
34 my $args_callback = sub {
35 my( $cgi, $object ) = @_;
38 if ( $cgi->param('locationnum') == -1 ) {
39 my $cust_location = new FS::cust_location {
40 map { $_ => scalar($cgi->param($_)) }
41 qw( custnum address1 address2 city county state zip country )
43 $opt{'cust_location'} = $cust_location;
50 my $value_callback = sub {
51 my ($field, $value) = @_;
52 ($field =~ /_date$/) ? parse_datetime($value) : $value;