X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUI%2FWeb.pm;h=fba4a45982648be979d3c44ad93723726cf24102;hb=5192ab23dffe251a20b6aa739d39a33ee65ce518;hp=70b0c479295046b497bfd08eb777f9805cb4cec5;hpb=c67b0f0200f3398fa0791722e79003054f0f7e8a;p=freeside.git diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 70b0c4792..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', @@ -323,6 +324,14 @@ sub cust_header { @cust_header; } +sub cust_sort_fields { + cust_header(@_); + #inefficientish, but tiny lists and only run once per page + + map { $_ eq 'custnum' ? 'custnum' : '' } @cust_fields; + +} + =item cust_sql_fields [ CUST_FIELDS_VALUE ] Returns a list of fields for the SELECT portion of an SQL query. @@ -349,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';