fix agent display on reports when set in conf setting cust-fields, RT#76948
[freeside.git] / FS / FS / cust_main_Mixin.pm
index 1955746..f8f1173 100644 (file)
@@ -262,6 +262,17 @@ sub cust_statuscolor {
     : '000000';
 }
 
+=item agent_name
+
+=cut
+
+sub agent_name {
+  my $self = shift;
+  $self->cust_linked
+    ? $self->cust_main->agent_name
+    : $self->cust_unlinked_msg;
+}
+
 =item prospect_sql
 
 =item active_sql