1 <% include('elements/process.html',
2 'table' => 'cust_main',
3 'error_redirect' => popurl(3). 'edit/cust_main-contacts.html?',
5 'skip_process' => 1, #we don't want to make any changes to cust_main
8 'fields' => \@contact_fields,
10 'redirect' => popurl(3). 'view/cust_main.cgi?',
15 my @contact_fields = qw( classnum first last title comment emailaddress );
16 foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) {
17 push @contact_fields, 'phonetypenum'.$phone_type->phonetypenum;