diff options
author | Mark Wells <mark@freeside.biz> | 2016-08-30 12:24:36 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-08-30 12:24:50 -0700 |
commit | fba328864880d1375780b94911acd9ff33cba805 (patch) | |
tree | 0e0cf71508d838d5fb729926ddc6f9d671637247 /httemplate/search/report_cust_pkg-date.html | |
parent | 0abdebedb22597b1e9c0b3e1c0fc91a5e7116388 (diff) |
add agent and cust-fields selection to package contract end date report, #71964
Diffstat (limited to 'httemplate/search/report_cust_pkg-date.html')
-rwxr-xr-x | httemplate/search/report_cust_pkg-date.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_pkg-date.html b/httemplate/search/report_cust_pkg-date.html new file mode 100755 index 000000000..ceb9a9c75 --- /dev/null +++ b/httemplate/search/report_cust_pkg-date.html @@ -0,0 +1,38 @@ +<& /elements/header.html, mt($title) &> + +<FORM ACTION="cust_pkg-date.html" METHOD="GET"> +<INPUT TYPE="hidden" NAME="date" VALUE="<% $col %>"> + +<TABLE BGCOLOR="#cccccc" CELLSPACING=0> + + <& /elements/tr-select-agent.html, + 'curr_value' => scalar( $cgi->param('agentnum') ), + 'disable_empty' => 0, + &> + + <& /elements/tr-select-cust-fields.html &> + +</TABLE> + +<BR> +<INPUT TYPE="submit" VALUE="Get Report"> + +</FORM> + +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('List packages'); + +# for the page title +my %cols = ( + 'contract_end' => 'Contract end' +); + +# or let the column be selected here? +my $col = $cgi->param('date'); +die "invalid date column" unless $cols{$col}; +my $title = 'Packages by ' . lc($cols{$col}) . ' date'; + +</%init> |