X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_main.html;h=4309fbb7fcde52fc40ab8a384f2661c5715fed07;hb=8baa8e46e67f00f297d7e10dad02c131d286f40e;hp=57b84cb37a70e6667a0ceffbc87548a94aa3cbbf;hpb=d5967ae3ecfdb0bb1ead8176cfb2760a65c51f2d;p=freeside.git diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html index 57b84cb37..4309fbb7f 100755 --- a/httemplate/search/report_cust_main.html +++ b/httemplate/search/report_cust_main.html @@ -1,69 +1,253 @@ -<% include('/elements/header.html', 'Customer Report' ) %> +<& /elements/header.html, mt('Customer Report') &> -
+ - + - <% include( '/elements/tr-select-agent.html', - ($cgi->param('agentnum') || ''), - ) - %> -% foreach my $field (qw( signupdate )) { + <& /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, + &> + + <& /elements/tr-select-cust_main-status.html, + 'label' => emt('Status'), + &> + + <& /elements/tr-select-cust_class.html, + 'label' => emt('Class'), + 'multiple' => 1, + 'pre_options' => [ '' => emt('(none)') ], + '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, + &> + + + + + + + + + + + + + + + +% if ( $conf->exists('cust_main-enable_birthdate') ) { + + + + +% } + +% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) { + + + + +% } +% if ( $conf->exists('cust_main-enable_anniversary_date') ) { + + + + % } + + + + + + + + + + + + <& /elements/tr-select-payby.html, + 'payby_type' => 'cust', + 'multiple' => 1, + 'all_selected' => 1, + &> + + + + + + + + + + + + + <& /elements/tr-input-lessthan_greaterthan.html, + label => emt('Current balance'), + field => 'current_balance', + &> + - - + + + + + + + + + + + + + + + + + + - + - <% include( '/elements/tr-select-cust-fields.html' ) %> + <& /elements/tr-select-cust-fields.html &> - + + + + + + +
Search options<% mt('Search options') |h %>
<% $label{$field} %>
<% mt('Address') |h %>
<% mt('Zip') |h %>
<% 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 +
+
With package of class + <& /elements/select-pkg_class.html, + 'field' => 'pkg_classnum', + 'multiple' => 1, + &> +
+ + Any of these +
+ + All of these +
+
<% mt('Payment expiration before') |h %> + + / + +
<% mt('Invoice terms') |h %> + <& /elements/select-terms.html, + 'pre_options' => [ '' => emt('all') ], + 'empty_value' => 'NULL', + &> +
Include cancelled packages<% mt('With email address(es)') |h %>
<% mt('With postal mail invoices') |h %>
<% mt('Without postal mail invoices') |h %>
 
Display options<% mt('Display options') |h %>
Add package columns<% mt('Add package columns') |h %>
<% 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') - );; - - -<%once> + unless $FS::CurrentUser::CurrentUser->access_right('Advanced customer search'); -my %label = ( - 'signupdate' => 'Signup Date', -); +my $conf = new FS::Conf; - +