X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pkg.html;h=5e8c429ec34b5c37c37ac84e73733a5284789738;hb=6f58ae775b905cd462dd0faafee95973414a45d2;hp=27aececc944e8d6d904dd6ffb5a50c19c1d8b123;hpb=42a5e5491d250c6462bc9e5bad53786414020fa9;p=freeside.git diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index 27aececc9..5e8c429ec 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -6,9 +6,8 @@ % unless ( $custnum ) { - - - <& /elements/tr-title.html, value => mt('Customer search options') &> + <% emt('Customer search options') %> +
<& /elements/tr-select-agent.html, 'curr_value' => scalar( $cgi->param('agentnum') ), @@ -50,9 +49,8 @@ % } -
- - <& /elements/tr-title.html, value => mt('Package search options') &> +<% emt('Package search options') %> +
<& /elements/tr-select-sales.html, 'label' => 'Package sales person', @@ -80,6 +78,7 @@ what.form.<% $field %>_beginning_text.disabled = true; what.form.<% $field %>_ending_text.disabled = true; + what.form.<% $field %>_null.disabled = true; what.form.<% $field %>_beginning_text.style.backgroundColor = '#dddddd'; what.form.<% $field %>_ending_text.style.backgroundColor = '#dddddd'; @@ -90,15 +89,21 @@ % } else { - what.form.<% $field %>_beginning_text.disabled = false; - what.form.<% $field %>_ending_text.disabled = false; - what.form.<% $field %>_beginning_text.style.backgroundColor = '#ffffff'; - what.form.<% $field %>_ending_text.style.backgroundColor = '#ffffff'; + what.form.<% $field %>_null.disabled = false; + + if ( ! what.form.<% $field %>_null.checked ) { - what.form.<% $field %>_beginning_button.style.display = ''; - what.form.<% $field %>_ending_button.style.display = ''; - what.form.<% $field %>_beginning_disabled.style.display = 'none'; - what.form.<% $field %>_ending_disabled.style.display = 'none'; + what.form.<% $field %>_beginning_text.disabled = false; + what.form.<% $field %>_ending_text.disabled = false; + what.form.<% $field %>_beginning_text.style.backgroundColor = '#ffffff'; + what.form.<% $field %>_ending_text.style.backgroundColor = '#ffffff'; + + what.form.<% $field %>_beginning_button.style.display = ''; + what.form.<% $field %>_ending_button.style.display = ''; + what.form.<% $field %>_beginning_disabled.style.display = 'none'; + what.form.<% $field %>_ending_disabled.style.display = 'none'; + + } % } % } @@ -109,6 +114,37 @@ } +% foreach my $field (@date_fields) { + + function <% $field %>_null_changed(what) { + + if ( what.checked ) { + what.form.<% $field %>_beginning_text.disabled = true; + what.form.<% $field %>_ending_text.disabled = true; + what.form.<% $field %>_beginning_text.style.backgroundColor = '#dddddd'; + what.form.<% $field %>_ending_text.style.backgroundColor = '#dddddd'; + what.form.<% $field %>_beginning_button.style.display = 'none'; + what.form.<% $field %>_ending_button.style.display = 'none'; + what.form.<% $field %>_beginning_disabled.style.display = ''; + what.form.<% $field %>_ending_disabled.style.display = ''; + + } else { + what.form.<% $field %>_beginning_text.disabled = false; + what.form.<% $field %>_ending_text.disabled = false; + what.form.<% $field %>_beginning_text.style.backgroundColor = '#ffffff'; + what.form.<% $field %>_ending_text.style.backgroundColor = '#ffffff'; + + what.form.<% $field %>_beginning_button.style.display = ''; + what.form.<% $field %>_ending_button.style.display = ''; + what.form.<% $field %>_beginning_disabled.style.display = 'none'; + what.form.<% $field %>_ending_disabled.style.display = 'none'; + + } + + } + +% } + <& /elements/tr-select-pkg_class.html, @@ -135,6 +171,7 @@ + % my $noinit = 0; % foreach my $field (@date_fields) { @@ -152,6 +189,13 @@ % $noinit = 1; % } + % } #foreach $field
From date (m/d/y) To date (m/d/y)Empty date
+ <& /elements/checkbox.html, + 'field' => $field.'_null', + 'value' => 'Y', + 'onchange' => $field.'_null_changed', + &> +
@@ -187,7 +231,11 @@ <& /elements/tr-selectmultiple-part_pkg.html &> - <& /elements/tr-title.html, value => mt('Location search options') &> + +
+ +<% emt('Location search options') %> + % my @location_options = qw(cust nocust census nocensus); % if ( $conf->config('tax_data_vendor') eq 'cch' ) { @@ -207,7 +255,11 @@ 'value' => { map { $_ => 0 } @location_options }, &> - <& /elements/tr-title.html, value => mt('Display options') &> +
+
+ +<% emt('Display options') %> + <& /elements/tr-select-cust-fields.html &>