diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-08-03 16:27:18 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-08-03 16:27:18 -0700 |
commit | 3f3bc48566ce23104d3e008b50c823d236af9b5c (patch) | |
tree | 53b916032550170bf5712c4e99dc6c3bc3fad731 /FS/FS/cust_main_Mixin.pm | |
parent | acd1c06475188ca5b810b02811a2d741ae931d85 (diff) |
fix agent display on reports when set in conf setting cust-fields, RT#76948
Diffstat (limited to 'FS/FS/cust_main_Mixin.pm')
-rw-r--r-- | FS/FS/cust_main_Mixin.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index 1955746..f8f1173 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -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 |