X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUI%2FWeb.pm;h=fba4a45982648be979d3c44ad93723726cf24102;hb=5192ab23dffe251a20b6aa739d39a33ee65ce518;hp=c1a0f11bb0e8d8dd9008046447df0b0010108842;hpb=d705687fb371ac04ed371ce2de8a4bb2fc25ee18;p=freeside.git diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index c1a0f11bb..fba4a4598 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -250,6 +250,7 @@ sub cust_header { 'Country' => 'bill_country_full', 'Day phone' => 'daytime', # XXX should use msgcat, but how? 'Night phone' => 'night', # XXX should use msgcat, but how? + 'Mobile phone' => 'mobile', # XXX should use msgcat, but how? 'Fax number' => 'fax', '(bill) Address 1' => 'bill_address1', '(bill) Address 2' => 'bill_address2', @@ -357,8 +358,13 @@ sub cust_sql_fields { } } } + foreach my $pre ('bill_','ship_') { + if ( grep { $_ eq $pre.'country_full' } @cust_fields ) { + push @location_fields, $pre.'locationnum'; + } + } - foreach my $field (qw(daytime night fax payby)) { + foreach my $field (qw(daytime night mobile fax payby)) { push @fields, $field if (grep { $_ eq $field } @cust_fields); } push @fields, 'agent_custid';