- Search options |
+ <% mt('Basic search options') |h %> |
- <% 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,
+ &>
-
- <% $label{$field} %> |
+ <& /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,
+ &>
+
+
+ <% mt('Signup date') |h %> |
+
+ <& /elements/tr-input-beginning_ending.html,
+ prefix => 'signupdate',
+ layout => 'horiz',
+ &>
+
+ |
+
+
+% if ( $conf->exists('cust_main-enable_birthdate') ) {
+
+ <% 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',
+ &>
- |
+
+% }
+% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
+
+ <% mt('Spouse Date of Birth') |h %> |
+
+
+ <& /elements/tr-input-beginning_ending.html,
+ prefix => 'spouse_birthdate',
+ layout => 'horiz',
+ &>
+
+ |
+
+% }
+
+% if ( $conf->exists('cust_main-enable_anniversary_date') ) {
+
+ <% mt('Anniversary Date') |h %> |
+
+
+ <& /elements/tr-input-beginning_ending.html,
+ prefix => 'anniversary_date',
+ layout => 'horiz',
+ &>
+
+ |
+
% }
- <% include( '/elements/tr-select-payby.html',
- 'payby_type' => 'cust',
- 'multiple' => 1,
- 'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
- )
- %>
+
+ Tags |
+
+ <& /elements/select-cust_tag.html,
+ 'cgi' => $cgi,
+ 'is_report' => 1,
+ 'multiple' => 1,
+ &>
+
+ Any of these
+
+ All of these
+
+ |
+
+
+
+ |
+
+
+ <% mt('Referral search options') |h %> |
+
+
+ <& /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',
+ &>
+
+
+ |
+
+
+ <% mt('Package search options') |h %> |
+
+
+
+ With |
+
+ |
+
+
+
+ of class |
+
+ <& /elements/select-pkg_class.html,
+ 'field' => 'pkg_classnum',
+ 'multiple' => 1,
+ &>
+
+
+ Any of these
+
+
+ All of these
+
+ |
+
+
+
+ |
+
+
+
+ <% mt('Location search options') |h %> |
+
+
+
+ <% mt('Address') |h %> |
+ |
+
+
+
+ <% mt('City') |h %> |
+
+ <& /elements/city.html,
+ disable_empty => 0,
+ empty_label => '(all)',
+ disable_text => 1,
+ &>
+ |
+
+
+
+ <% 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)',
+ &>
+ |
+
+
+
+ |
+
+
+
+ <% mt('Billing search options') |h %> |
+
+
+ <& /elements/tr-select-payby.html,
+ 'payby_type' => 'cust',
+ 'multiple' => 1,
+ 'all_selected' => 1,
+ &>
+
+
+ <% mt('Payment expiration before') |h %> |
+
+
+ /
+
+ |
+
+
+
+
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
+% unless ( @exempt_groups ) {
+
+% #falze laziness with With/Without postal mail invoices
+
+ <% mt('Tax exempt') |h %> |
+ |
+
+
+
+ <% mt('Not tax exempt') |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',
+ 'agentnum' => $agentnum,
+ &>
+ |
+
- <% include( '/elements/tr-input-lessthan_greaterthan.html',
- label => 'Current balance',
+ <& /elements/tr-input-lessthan_greaterthan.html,
+ label => emt('Current balance'),
field => 'current_balance',
- )
- %>
+ &>
- Include cancelled packages |
- |
+ <% mt('With invoicing email address(es)') |h %> |
+ |
+
+
+
+ <% mt('With postal mail invoices') |h %> |
+ |
+
+
+
+ <% mt('Without postal mail invoices') |h %> |
+ |
+
+
+
+
+
+ |
- Display options |
+ <% mt('Display options') |h %> |
- <% include( '/elements/tr-select-cust-fields.html' ) %>
+ <& /elements/tr-select-cust-fields.html &>
- Add package columns |
+ <% mt('Add package columns') |h %> |
|
+
+
+ <% mt('Include cancelled packages') |h %> |
+ |
+
+
+
+ <% mt('Search historical addresses') %> |
+ |
+