1 <% include( 'elements/svc_Common.html',
2 'table' => 'svc_phone',
3 'args_callback' => $args_callback,
9 unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
11 my $args_callback = sub {
12 my( $cgi, $object ) = @_;
15 if ( $cgi->param('locationnum') == -1 ) {
16 my $cust_location = new FS::cust_location {
17 map { $_ => scalar($cgi->param($_)) }
18 qw( custnum address1 address2 city county state zip country )
20 $opt{'cust_location'} = $cust_location;