X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_main.html;h=3dd92af2e55e0b162210639de85b02d1c5f84386;hp=eb1a662736216216867b8962534c9a414a7daf62;hb=6b5dda03831aef0cb5689cf2acf3fac47e4b12cb;hpb=f22b714f2b7a38c8a930d8248ccb32751db82b5e diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html index eb1a66273..3dd92af2e 100755 --- a/httemplate/search/report_cust_main.html +++ b/httemplate/search/report_cust_main.html @@ -1,154 +1,290 @@ -<% include('/elements/header.html', 'Customer Report' ) %> +<& /elements/header.html, mt('Customer Report') &>
- + <% emt('Basic search options') %> +
- - - - - <% include( '/elements/tr-select-agent.html', + <& /elements/tr-select-agent.html, 'curr_value' => scalar($cgi->param('agentnum')), 'disable_empty' => 0, - ) - %> + &> - <% include( '/elements/tr-select-cust_main-status.html', - 'label' => 'Status' - ) - %> + <& /elements/tr-select-sales.html, + 'curr_value' => scalar($cgi->param('salesnum')), + 'pre_options' => [ '' => 'all', + 0 => '(none)', ], + 'disable_empty' => 1, + 'th' => 1, + &> - <% include( '/elements/tr-select-cust_class.html', - 'label' => 'Class', + <& /elements/tr-select-cust_main-status.html, + 'label' => emt('Status'), + &> + + <& /elements/tr-select-cust_class.html, + 'label' => emt('Class'), 'multiple' => 1, - 'pre_options' => [ '' => '(none)' ], + 'pre_options' => [ '' => emt('(none)') ], 'all_selected' => 1, - ) - %> + &> -% foreach my $field (qw( signupdate )) { + <& /elements/tr-select-part_referral.html, + 'label' => emt('Advertising Source'), + 'multiple' => 1, + #no, causes customers with disabled ones to disappear + #'all_selected' => 1, + &> - - + + + + +% if ( $conf->exists('cust_main-enable_birthdate') ) { + + + + +% } +% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { + + + + % } - <% include( '/elements/tr-select-payby.html', - 'payby_type' => 'cust', - 'multiple' => 1, - 'all_selected' => 1, - ) - %> +% if ( $conf->exists('cust_main-enable_anniversary_date') ) { + + + + +% } + + + + + + +
Search options
<% $label{$field} %>
<% mt('Signup date') |h %> + + <& /elements/tr-input-beginning_ending.html, + prefix => 'signupdate', + layout => 'horiz', + &> +
+
<% mt('Date of Birth') |h %> - <% include( '/elements/tr-input-beginning_ending.html', - prefix => $field, - layout => 'horiz', - ) - %> + <& /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 +
+ 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 + + + + - - + + - +% } + - + - <% include( '/elements/tr-input-lessthan_greaterthan.html', - label => 'Current balance', + <& /elements/tr-input-lessthan_greaterthan.html, + label => emt('Current balance'), field => 'current_balance', - ) - %> + &> - - + + -% if ( $conf->exists('cust_main-require_censustract') ) { - - - + + -% } - - + + + + +
<% mt('Tax exempt') |h %>
Payment expiration before - - / - - <% mt('Not tax exempt') |h %>
Invoice terms<% mt('Invoice terms') |h %> - <% include( '/elements/select-terms.html', - 'pre_options' => [ '' => 'all' ], - 'empty_value' => 'NULL', - ) - %> +% my @agentnums = $FS::CurrentUser::CurrentUser->agentnums; +% my $agentnum = scalar(@agentnums) == 1 ? $agentnums[0] : ''; + <& /elements/select-terms.html, + 'pre_options' => [ '' => emt('all') ], + 'empty_value' => 'NULL', + 'agentnum' => $agentnum, + &>
Include cancelled packages<% mt('With invoicing email address(es)') |h %>
Without census tract<% mt('With postal mail invoices') |h %>
 <% mt('Without postal mail invoices') |h %>
+
+ + <% emt('Display options') %> + + + <& /elements/tr-select-cust-fields.html &> + - + + - <% include( '/elements/tr-select-cust-fields.html' ) %> - - + + +
Display options<% mt('Add package columns') |h %>
Add package columns<% mt('Include cancelled packages') |h %>

- +
-<% include('/elements/footer.html') %> +<& /elements/footer.html &> <%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; -<%once> - -my %label = ( - 'signupdate' => 'Signup date', -); - -