X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pkg.html;h=556177c8a27db35e23762da8bddada722548b696;hb=refs%2Fheads%2F24899_agent_virt_attach_report;hp=0a17344b8481b4250170550c0007767f048f457b;hpb=c14b35ce12141287e201bba8489b202a1b34b38f;p=freeside.git
diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html
index 0a17344b8..556177c8a 100755
--- a/httemplate/search/report_cust_pkg.html
+++ b/httemplate/search/report_cust_pkg.html
@@ -4,21 +4,22 @@
+% unless ( $custnum ) {
+
-
-
- Search options
- |
-
+ <& /elements/tr-title.html, value => mt('Customer search options') &>
-% unless ( $custnum ) {
- <% include( '/elements/tr-select-agent.html',
+ <& /elements/tr-select-agent.html,
'curr_value' => scalar( $cgi->param('agentnum') ),
'disable_empty' => 0,
'onchange' => 'agent_changed(this)',
- )
- %>
+ &>
+
+ <& /elements/tr-select-cust_main-status.html,
+ 'label' => 'Customer status',
+ 'field' => 'cust_status',
+ &>
- <% include( '/elements/tr-select-pkg_class.html',
+ <& /elements/tr-select-pkg_class.html,
'pre_options' => [ '0' => 'all' ],
'empty_label' => '(empty class)',
- )
- %>
+ &>
% if ( scalar( qsearch( 'part_pkg_report_option', { 'disabled' => '' } ) ) ) {
- <% include( '/elements/tr-select-table.html',
+ <& /elements/tr-select-table.html,
'label' => 'Report classes',
'table' => 'part_pkg_report_option',
'name_col' => 'name',
'hashref' => { 'disabled' => '' },
'element_name' => 'report_option',
'multiple' => 'multiple',
- )
- %>
+ &>
% }
@@ -129,6 +173,7 @@
|
From date (m/d/y) |
To date (m/d/y) |
+ Empty date |
% my $noinit = 0;
% foreach my $field (@date_fields) {
@@ -146,6 +191,13 @@
% $noinit = 1;
% }
+
+ <& /elements/checkbox.html,
+ 'field' => $field.'_null',
+ 'value' => 'Y',
+ 'onchange' => $field.'_null_changed',
+ &>
+ |
% } #foreach $field
@@ -172,24 +224,38 @@
- <% include( '/elements/tr-checkbox.html',
+ <& /elements/tr-checkbox.html,
'label' => 'Custom packages',
'field' => 'custom',
'value' => 1,
'onchange' => 'custom_changed(this);',
- )
- %>
+ &>
- <% include( '/elements/tr-selectmultiple-part_pkg.html' ) %>
+ <& /elements/tr-selectmultiple-part_pkg.html &>
-
- |
-
+ <& /elements/tr-title.html, value => mt('Location search options') &>
-
- Display options |
-
- <% include( '/elements/tr-select-cust-fields.html' ) %>
+% my @location_options = qw(cust nocust census nocensus);
+% if ( $conf->config('tax_data_vendor') eq 'cch' ) {
+% push @location_options, 'geocode', 'nogeocode';
+% }
+ <& /elements/tr-checkbox-multiple.html,
+ 'label' => 'Where package location:',
+ 'field' => 'loc',
+ 'options' => \@location_options,
+ 'labels' => { 'cust' => "is the customer's default location",
+ 'nocust' => "is not the customer's default location",
+ 'census' => "has a census tract",
+ 'nocensus' => "does not have a census tract",
+ 'nogeocode'=> 'has an implicit tax location',
+ 'geocode' => 'has a hardcoded tax location',
+ },
+ 'value' => { map { $_ => 0 } @location_options },
+ &>
+
+ <& /elements/tr-title.html, value => mt('Display options') &>
+
+ <& /elements/tr-select-cust-fields.html &>
@@ -240,7 +306,8 @@ my @date_fields = keys %label;
#false laziness w/cust_pkg.cgi
my %disable = (
'all' => {},
- 'not yet billed' => { 'setup'=>1, 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, },
+ 'on hold' => { 'setup'=>1, 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'expire'=>1, 'cancel'=>1, 'dundate'=> 1, },
+ 'not yet billed' => { 'setup'=>1, 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, 'dundate'=>1, },
'one-time charge' => { 'last_bill'=>1, 'bill'=>1, 'adjourn'=>1, 'susp'=>1, 'expire'=>1, 'cancel'=>1, 'contract_end'=>1, 'dundate'=>1, },
'active' => { 'susp'=>1, 'cancel'=>1 },
'suspended' => { 'cancel'=>1, 'dundate'=>1, },
@@ -259,4 +326,5 @@ my %checkbox = (
'cancel' => 1,
);
+my $conf = FS::Conf->new;
%once>