diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-12-14 12:29:45 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-12-14 12:29:45 -0800 |
commit | 2c5bb9b8dfea90e8aac3937dfd28e3826e9c5f99 (patch) | |
tree | b5b59a16f1808b6da624b179cca21b66e9b9acad | |
parent | deb45cd5e78b1d35548047b003d85c4f45dc48e3 (diff) |
add customer fields option with agent, display_custnum, status and name, RT#73721
-rw-r--r-- | FS/FS/ConfDefaults.pm | 3 | ||||
-rw-r--r-- | FS/FS/UI/Web.pm | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/ConfDefaults.pm b/FS/FS/ConfDefaults.pm index 4c37175c3..987225f42 100644 --- a/FS/FS/ConfDefaults.pm +++ b/FS/FS/ConfDefaults.pm @@ -33,6 +33,9 @@ sub cust_fields_avail { ( 'Cust# | Cust. Status | Customer' => 'custnum | Status | Last, First or Company (Last, First)', + 'Agent | Agent Cust# or Cust# | Cust. Status | Customer' => + 'Agent | Agent Cust# | Status | Last, First or Company (Last, First)', + 'Customer | Day phone | Night phone | Mobile phone | Fax number' => 'Customer | (all phones)', 'Cust# | Customer | Day phone | Night phone | Mobile phone | Fax number' => diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index 81c4c7b7b..6d6f7fbb6 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -346,6 +346,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' @@ -451,6 +453,8 @@ sub cust_sql_fields { if grep { $_ eq 'cust_payby' } @cust_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"; |