X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_main.html;h=3dd92af2e55e0b162210639de85b02d1c5f84386;hp=39cf695d8af5b10f031d727ca8f99c35e27d5152;hb=6b5dda03831aef0cb5689cf2acf3fac47e4b12cb;hpb=cf7cd8efc7095aadbdfb0cd8e7ea0e2e8b9e9085 diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html index 39cf695d8..3dd92af2e 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'), &> @@ -28,16 +33,12 @@ <& /elements/tr-select-part_referral.html, 'label' => emt('Advertising Source'), 'multiple' => 1, - 'all_selected' => 1, + #no, causes customers with disabled ones to disappear + #'all_selected' => 1, &> - - - - - - +
<% mt('Address') |h %>
<% mt('Signup date') |h %><% mt('Signup date') |h %> <& /elements/tr-input-beginning_ending.html, @@ -50,7 +51,7 @@ % if ( $conf->exists('cust_main-enable_birthdate') ) { - +
<% mt('Date of Birth') |h %><% mt('Date of Birth') |h %> <& /elements/tr-input-beginning_ending.html, @@ -64,7 +65,7 @@ % if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { - +
<% mt('Spouse Date of Birth') |h %><% mt('Spouse Date of Birth') |h %> <& /elements/tr-input-beginning_ending.html, @@ -76,55 +77,146 @@ % } - <& /elements/tr-select-cust_tag.html, - 'cgi' => $cgi, - 'is_report' => 1, - 'multiple' => 1, - &> +% if ( $conf->exists('cust_main-enable_anniversary_date') ) { + + + + +% } - <& /elements/tr-select-payby.html, - 'payby_type' => 'cust', - 'multiple' => 1, - 'all_selected' => 1, + + + + + +
<% 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 +
+ None of these +
+
+
+ + <% emt('Referral search options') %> + + + <& /elements/tr-input-text.html, + label => emt('At least this many'), + field => 'with_referrals', + size => 4, + maxlength => 4, + &> + + <& /elements/tr-select-cust_main-status.html, + label => emt('Referral status'), + field => 'referral_status', + &> + +
+
+ + <% 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') %> + + <& elements/options_cust_location.html &> + <& elements/cust_main_phones.html &> +
+
+ + <% emt('Contacts search options') %> + + <& elements/options_cust_contacts.html, + 'pre_fix' => 'contacts_', &> +
+
+ + <% 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 + + + + - - + + - +% } + - + @@ -135,35 +227,48 @@ &> - - + + -% if ( $conf->exists('enable_taxproducts') ) { - - - - - - -% } - - + + - + + + + + +
<% mt('Tax exempt') |h %>
<% mt('Payment expiration before') |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('Without census tract') |h %><% mt('With invoicing email address(es)') |h %>
<% mt('With hardcoded tax location') |h %>
 <% mt('With postal mail invoices') |h %>
<% mt('Display options') |h %><% mt('Without postal mail invoices') |h %>
+
+ + <% emt('Display options') %> + + <& /elements/tr-select-cust-fields.html &> - + - +
<% mt('Add package columns') |h %><% mt('Add package columns') |h %>
<% mt('Include cancelled packages') |h %><% mt('Include cancelled packages') |h %>