From 271785973c230748a2575ba925d03f49668405bc Mon Sep 17 00:00:00 2001 From: "C.J. Adams-Collier" Date: Tue, 9 Sep 2014 13:16:21 -0700 Subject: [PATCH] have expanded the AR aging summary to include other fields. Have not yet populated the fields. FS RT #27208 --- FS/FS/ConfDefaults.pm | 3 +++ httemplate/elements/select-cust-fields.html | 22 +++++++++------------- .../search/elements/cust_main_dayranges.html | 22 +++++++++------------- httemplate/search/report_receivables.html | 9 +++++++++ 4 files changed, 30 insertions(+), 26 deletions(-) diff --git a/FS/FS/ConfDefaults.pm b/FS/FS/ConfDefaults.pm index 191ff8537..df8024a53 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)', + 'Cust# | Day phone | Night phone | Fax number' => + 'custnum | (all phones)', + 'Cust. Status | Name | Company' => 'Status | Last, First | Company', 'Cust# | Cust. Status | Name | Company' => diff --git a/httemplate/elements/select-cust-fields.html b/httemplate/elements/select-cust-fields.html index 98feaf85c..5e3063877 100644 --- a/httemplate/elements/select-cust-fields.html +++ b/httemplate/elements/select-cust-fields.html @@ -1,22 +1,18 @@ -% -% my( $cust_fields, %opt ) = @_; -% -% use FS::ConfDefaults; -% $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; -% -% tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} }; -% -% +<%init> + my( $cust_fields, %opt ) = @_; + use FS::ConfDefaults; + $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; + + tie my %hash, 'Tie::IxHash', @{ $opt{'avail_fields'} }; + -- 2.11.0