X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUI%2FWeb.pm;h=709e3f7dd7292b693e67dba3813a477b362104b5;hp=04aeda103ad9820fe087cdb073cec8172385c01e;hb=a36e0f8a0f69349dafaa16d1d2d57dfb6e5dbc85;hpb=a889c7e41bb3bd9ccebbf4f956c36377f328400e diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 04aeda103..709e3f7dd 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -347,6 +347,8 @@ sub cust_header { # 'Payment Type' => 'cust_payby', 'Current Balance' => 'current_balance', 'Agent Cust#' => 'agent_custid', + 'Agent' => 'agent_name', + 'Agent Cust# or Cust#' => 'display_custnum', 'Advertising Source' => 'referral', ); $header2method{'Cust#'} = 'display_custnum' @@ -450,6 +452,8 @@ sub cust_sql_fields { } push @fields, 'agent_custid'; + push @fields, 'agentnum' if grep { $_ eq 'agent_name' } @cust_fields; + my @extra_fields = (); if (grep { $_ eq 'current_balance' } @cust_fields) { push @extra_fields, FS::cust_main->balance_sql . " AS current_balance";