diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-05-28 10:55:29 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-05-28 11:26:48 -0400 |
commit | 727183110e28fc634f7813b85ba9797f1be83c38 (patch) | |
tree | 2dd860a23965c2ef3b645b60166ce00853fbaf45 /FS | |
parent | 2cbc631a817e19dcfe4b61d2fd856e87f01d3509 (diff) |
RT# 77532 - fixed error where cust main fax not showing, and fixed checking of phonetypenum
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/ConfDefaults.pm | 2 | ||||
-rw-r--r-- | FS/FS/UI/Web.pm | 2 | ||||
-rw-r--r-- | FS/FS/cust_main/Search.pm | 2 | ||||
-rw-r--r-- | FS/FS/phone_type.pm | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/FS/FS/ConfDefaults.pm b/FS/FS/ConfDefaults.pm index 12b1d8a..216b597 100644 --- a/FS/FS/ConfDefaults.pm +++ b/FS/FS/ConfDefaults.pm @@ -36,7 +36,7 @@ sub cust_fields_avail { ( 'Agent | Agent Cust# or Cust# | Cust. Status | Customer' => 'Agent | Agent Cust# | Status | Last, First or Company (Last, First)', - "Customer | Day phone | Night phone | Mobile phone | Fax number | Contact phone(s)" => + 'Customer | Day phone | Night phone | Mobile phone | Fax number | Contact phone(s)' => 'Customer | (all phones)', 'Cust# | Customer | Day phone | Night phone | Mobile phone | Fax number | Contact phone(s)' => 'custnum | Customer | (all phones)', diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 4bbe467..bbb8e70 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -472,7 +472,7 @@ sub cust_sql_fields { } } - 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'; diff --git a/FS/FS/cust_main/Search.pm b/FS/FS/cust_main/Search.pm index 479ebf5..25216c6 100644 --- a/FS/FS/cust_main/Search.pm +++ b/FS/FS/cust_main/Search.pm @@ -793,7 +793,7 @@ sub search { # phones ## - foreach my $phonet (qw(daytime night mobile)) { + foreach my $phonet (qw(daytime night mobile fax)) { if ($params->{$phonet}) { $params->{$phonet} =~ s/\D//g; $params->{$phonet} =~ /^(\d{3})(\d{3})(\d{4})(\d*)$/ diff --git a/FS/FS/phone_type.pm b/FS/FS/phone_type.pm index 3d9dced..de56527 100644 --- a/FS/FS/phone_type.pm +++ b/FS/FS/phone_type.pm @@ -98,8 +98,8 @@ returns a list of phone_types. =cut sub get_phone_types { - ## only using mobile(3) and work(1) right now. - my @phone_types = qsearch({table=>'phone_type', order_by=>'ORDER BY weight DESC', extra_sql => " WHERE phonetypenum IN ('1','3')"}); + ## not using Home and Fax right now. false laziness with /elements/contact.html + my @phone_types = qsearch({table=>'phone_type', order_by=>'ORDER BY weight DESC', extra_sql => " WHERE typename NOT IN ('Home','Fax')"}); return @phone_types; } |