X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pkg.html;h=b8c32c63142b33f7b6526fafee5bfbd5f689b1ae;hb=47c250d15d752e6210b9c044a4a64e2e8992c64e;hp=fcc0934104de3ccb55544a3e794c10bbcabdb8d7;hpb=00156a6b621cc0e0227564ebbc53bda3aeb9dc14;p=freeside.git diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index fcc093410..b8c32c631 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -1,4 +1,4 @@ -<% include('/elements/header.html', $title ) %> +<& /elements/header.html, mt($title, @title_arg) &>
@@ -7,20 +7,60 @@ - % 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', + &> + + + + <& /elements/tr-select-sales.html, + 'label' => 'Customer sales person', + 'element_name' => 'cust_main_salesnum', + 'id' => 'cust_main_salesnum', + 'curr_value' => scalar($cgi->param('cust_main_salesnum')), + 'pre_options' => [ '' => 'all', + 0 => '(none)', ], + 'disable_empty' => 1, + &> + % } + <& /elements/tr-select-sales.html, + 'label' => 'Package sales person', + 'curr_value' => scalar($cgi->param('salesnum')), + 'pre_options' => [ '' => 'all', + 0 => '(none)', ], + 'disable_empty' => 1, + &> + <% include( '/elements/tr-select-cust_pkg-status.html', + 'label' => 'Package status', 'onchange' => 'status_changed(this);', ) %> @@ -33,7 +73,7 @@ if ( what.options[what.selectedIndex].value == '<% $status %>' ) { -% foreach my $field (qw( setup last_bill bill adjourn susp expire cancel )) { +% foreach my $field (@date_fields) { % if ( $disable{$status}->{$field} ) { what.form.<% $field %>_beginning_text.disabled = true; @@ -88,23 +128,35 @@ %> % } - -% foreach my $field (qw( setup last_bill bill adjourn susp expire cancel )) { - - - - - - -% } + + +
+ Search options
<% $label{$field} %> - - <% include( '/elements/tr-input-beginning_ending.html', - prefix => $field, - layout => 'horiz', - ) - %> -
-
+ + + + + + +% my $noinit = 0; +% foreach my $field (@date_fields) { + + + +% foreach (qw(beginning ending)) { + +% $noinit = 1; +% } + +% } #foreach $field +
From date (m/d/y)To date (m/d/y)
<% $label{$field} %> + <& /elements/input-date-field.html, { + 'name' => $field.'_'.$_, + 'value' => '', + 'noinit' => $noinit, + 'format' => '%m/%d/%Y', + } &> +
+