use custnum-display_prefix in fancy location labels, #16815
authorMark Wells <mark@freeside.biz>
Fri, 25 May 2012 02:29:23 +0000 (19:29 -0700)
committerMark Wells <mark@freeside.biz>
Fri, 25 May 2012 02:29:23 +0000 (19:29 -0700)
FS/FS/Conf.pm
FS/FS/cust_location.pm

index e9cdafb..4e497c1 100644 (file)
@@ -3155,14 +3155,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',
     'description' => 'Display full timestamps (not just dates) for customer packages.  Useful if you are doing real-time things like hourly prepaid.',
index a99fa17..bcdb50c 100644 (file)
@@ -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