X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_pkg.html;h=e47bbb1e5399dc56af221d76e9cbcef9fb4f213a;hb=63973c641c4be00765fa27e55c57cc5b9aa4da19;hp=3840663cfbdf9219a55239a480f187602250624e;hpb=04a69f9d197efee6fa396bd35d04ae553e669978;p=freeside.git diff --git a/httemplate/search/report_cust_pkg.html b/httemplate/search/report_cust_pkg.html index 3840663cf..e47bbb1e5 100755 --- a/httemplate/search/report_cust_pkg.html +++ b/httemplate/search/report_cust_pkg.html @@ -1,21 +1,24 @@ -<% include('/elements/header.html', 'Package Report' ) %> +<& /elements/header.html, mt($title, @title_arg) &>
+ - +% unless ( $custnum ) { <% include( '/elements/tr-select-agent.html', 'curr_value' => scalar( $cgi->param('agentnum') ), 'disable_empty' => 0, ) %> +% } <% include( '/elements/tr-select-cust_pkg-status.html', 'onchange' => 'status_changed(this);', @@ -30,7 +33,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; @@ -72,22 +75,48 @@ ) %> -% foreach my $field (qw( setup last_bill bill adjourn susp expire cancel )) { - - - - - +% if ( scalar( qsearch( 'part_pkg_report_option', { 'disabled' => '' } ) ) ) { + + <% include( '/elements/tr-select-table.html', + 'label' => 'Report classes', + 'table' => 'part_pkg_report_option', + 'name_col' => 'name', + 'hashref' => { 'disabled' => '' }, + 'element_name' => 'report_option', + 'multiple' => 'multiple', + ) + %> % } + + +
+ 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', + } &> +
+