2 <TD ALIGN="right"><% $opt{'label'} || 'Customer fields' %></TD>
4 <% include( '/elements/select-cust-fields.html', $cust_fields, %opt ) %>
9 my( $cust_fields, %opt ) = @_;
11 my @fields = FS::ConfDefaults->cust_fields_avail();
12 my $contact_phone_list;
13 foreach my $phone_type ( FS::phone_type->get_phone_types() ) {
14 $contact_phone_list .= " | Contact ".$phone_type->typename." phone(s)";
16 @fields = map {s/\| Contact phone\(s\)/$contact_phone_list/g; $_; } @fields;
18 $opt{'avail_fields'} ||= [ @fields ];