X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_main.html;h=b6be023f637acece999aa388e262a861b610c881;hp=0ef5a5196b30eb1f60931436eff85e7552abf5ac;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html index 0ef5a5196..b6be023f6 100755 --- a/httemplate/search/report_cust_main.html +++ b/httemplate/search/report_cust_main.html @@ -3,17 +3,22 @@
- - - - - + <% emt('Basic search options') %> +
<% mt('Search options') |h %>
<& /elements/tr-select-agent.html, 'curr_value' => scalar($cgi->param('agentnum')), 'disable_empty' => 0, &> + <& /elements/tr-select-sales.html, + 'curr_value' => scalar($cgi->param('salesnum')), + 'pre_options' => [ '' => 'all', + 0 => '(none)', ], + 'disable_empty' => 1, + 'th' => 1, + &> + <& /elements/tr-select-cust_main-status.html, 'label' => emt('Status'), &> @@ -25,13 +30,15 @@ 'all_selected' => 1, &> - - - - + <& /elements/tr-select-part_referral.html, + 'label' => emt('Advertising Source'), + 'multiple' => 1, + #no, causes customers with disabled ones to disappear + #'all_selected' => 1, + &> - + - - + <% emt('Display options') %> +
<% mt('Address') |h %>
<% mt('Signup date') |h %><% mt('Signup date') |h %> <& /elements/tr-input-beginning_ending.html, @@ -42,55 +49,197 @@ - <& /elements/tr-select-cust_tag.html, - 'cgi' => $cgi, - 'is_report' => 1, - 'multiple' => 1, - &> +% if ( $conf->exists('cust_main-enable_birthdate') ) { + + + + +% } - <& /elements/tr-select-payby.html, - 'payby_type' => 'cust', - 'multiple' => 1, - 'all_selected' => 1, - &> +% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { + + + + +% } + +% if ( $conf->exists('cust_main-enable_anniversary_date') ) { + + + + +% } + + + + + + +
<% mt('Date of Birth') |h %> + + <& /elements/tr-input-beginning_ending.html, + prefix => 'birthdate', + layout => 'horiz', + &> +
+
<% mt('Spouse Date of Birth') |h %> + + <& /elements/tr-input-beginning_ending.html, + prefix => 'spouse_birthdate', + layout => 'horiz', + &> +
+
<% mt('Anniversary Date') |h %> + + <& /elements/tr-input-beginning_ending.html, + prefix => 'anniversary_date', + layout => 'horiz', + &> +
+
Tags + <& /elements/select-cust_tag.html, + 'cgi' => $cgi, + 'is_report' => 1, + 'multiple' => 1, + &> +
+ Any of these +
+ All of these +
+
+
+ + <% emt('Package search options') %> + + + + + + + + + + + + +
With +
of class + <& /elements/select-pkg_class.html, + 'field' => 'pkg_classnum', + 'multiple' => 1, + &> +
+ + Any of these +
+ + All of these +
+
+
+ + <% emt('Location search options') %> + + + + + + + + + + + - + + + + + + + + + + + + + + + + + +
<% mt('Address') |h %>
<% mt('City') |h %> + <& /elements/city.html, + disable_empty => 0, + empty_label => '(all)', + disable_text => 1, + &> +
<% mt('Payment expiration before') |h %><% mt('County') |h %> + <& /elements/select-county.html, + disable_empty => 0, + empty_label => '(all)', + &> +
<% mt('State') |h %> - - / - + <& /elements/select-state.html, + disable_empty => 0, + empty_label => '(all)', + &>
<% mt('Zip') |h %>
<% mt('Country') |h %> + <& /elements/select-country.html, + disable_empty => 0, + state_disable_empty => 0, + state_empty_label => '(all)', + &> +
+
+ + <% emt('Billing search options') %> + + +% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups'); +% unless ( @exempt_groups ) { + +% #falze laziness with With/Without postal mail invoices + + + + + + + + + - +% } + - + @@ -101,37 +250,51 @@ &> - - + + - - + + -% if ( $conf->exists('enable_taxproducts') ) { + + + + - - - - + -% } +
<% mt('Tax exempt') |h %>
<% mt('Not tax exempt') |h %>
<% mt('Invoice terms') |h %><% mt('Invoice terms') |h %> +% my @agentnums = $FS::CurrentUser::CurrentUser->agentnums; +% my $agentnum = scalar(@agentnums) == 1 ? $agentnums[0] : ''; <& /elements/select-terms.html, - 'pre_options' => [ '' => emt('all') ], - 'empty_value' => 'NULL', + 'pre_options' => [ '' => emt('all') ], + 'empty_value' => 'NULL', + 'agentnum' => $agentnum, &>
<% mt('Include cancelled packages') |h %><% mt('With invoicing email address(es)') |h %>
<% mt('Without census tract') |h %><% mt('With postal mail invoices') |h %>
<% mt('Without postal mail invoices') |h %>
<% mt('With hardcoded tax location') |h %>
+
-
 
- - - <& /elements/tr-select-cust-fields.html &> - + + + + + + +
<% mt('Display options') |h %>
<% mt('Add package columns') |h %><% mt('Add package columns') |h %>
<% mt('Include cancelled packages') |h %>

@@ -143,9 +306,7 @@ <%init> die "access denied" - unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') && - $FS::CurrentUser::CurrentUser->access_right('List packages') - ); + unless $FS::CurrentUser::CurrentUser->access_right('Advanced customer search'); my $conf = new FS::Conf;