my $num = $phone_type->phonetypenum;
my @phones;
- foreach ($self->contact_list_name_phones) {
+ foreach (FS::cust_main::contact_list_name_phones($self)) {
my $data = [
{
'data' => $_->first.' '.$_->last.' '.FS::contact_phone::phonenum_pretty($_),
}
}
- foreach my $field (qw(daytime night mobile fax )) {
+ foreach my $field (qw(daytime night mobile fax)) {
push @fields, $field if (grep { $_ eq $field } @cust_fields);
}
push @fields, 'agent_custid';