From: Mark Wells Date: Fri, 25 May 2012 02:29:54 +0000 (-0700) Subject: use custnum-display_prefix in fancy location labels, #16815 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=d0a49d8077923f229aacbd8a5d2b8a8eb63a6bc9;p=freeside.git use custnum-display_prefix in fancy location labels, #16815 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 91abd2a20..a58218b37 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -3132,14 +3132,6 @@ and customer address. Include units.', ], }, - { - 'key' => 'cust_location-agent_code', - 'section' => 'UI', - 'description' => 'Optional agent string for cust_location-label_prefix', - 'type' => 'text', - 'per_agent' => 1, - }, - { 'key' => 'cust_pkg-display_times', 'section' => 'UI', diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index a99fa17d8..bcdb50c61 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -429,7 +429,7 @@ sub location_label { elsif ( $self->prospectnum ) { $cust_or_prospect = FS::prospect_main->by_key($self->prospectnum); } - my $agent = $conf->config('cust_location-agent_code', + my $agent = $conf->config('cust_main-custnum-display_prefix', $cust_or_prospect->agentnum) || $cust_or_prospect->agent->agent; # else this location is invalid