diff options
Diffstat (limited to 'httemplate/search/report_cust_main.html')
-rwxr-xr-x | httemplate/search/report_cust_main.html | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_main.html b/httemplate/search/report_cust_main.html new file mode 100755 index 000000000..758c26923 --- /dev/null +++ b/httemplate/search/report_cust_main.html @@ -0,0 +1,82 @@ +<% include('/elements/header.html', 'Customer Report' ) %> + +<FORM ACTION="cust_main.html" METHOD="GET"> +<INPUT TYPE="hidden" NAME="magic" VALUE="bill"> + + <TABLE BGCOLOR="#cccccc" CELLSPACING=0> + + <TR> + <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH> + </TR> + <% include( '/elements/tr-select-agent.html', + ($cgi->param('agentnum') || ''), + ) + %> + +% foreach my $field (qw( signupdate )) { + + <TR> + <TD ALIGN="right" VALIGN="center"><% $label{$field} %></TD> + <TD> + <TABLE> + <% include( '/elements/tr-input-beginning_ending.html', + prefix => $field, + layout => 'horiz', + ) + %> + </TABLE> + </TD> + </TR> + +% } + + <% include( '/elements/tr-select-payby.html', + 'payby_type' => 'cust', + 'multiple' => 1, + 'curr_value' => { map { $_ => 1 } FS::payby->cust_payby }, + ) + %> + + <% include( '/elements/tr-input-lessthan_greaterthan.html', + label => 'Current balance', + field => 'current_balance', + ) + %> + + <TR> + <TD ALIGN="right" VALIGN="center">Include cancelled packages</TD> + <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD> + </TR> + + <TR> + <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH> + </TR> + <% include( '/elements/tr-select-cust-fields.html' ) %> + + <TR> + <TD ALIGN="right" VALIGN="center">Add package columns</TD> + <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD> + </TR> + </TABLE> + +<BR> +<INPUT TYPE="submit" VALUE="Get Report"> + +</FORM> + +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') && + $FS::CurrentUser::CurrentUser->access_right('List packages') + );; + +</%init> +<%once> + +my %label = ( + 'signupdate' => 'Signup date', +); + +</%once> |