diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-16 13:53:20 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-02-16 13:53:20 -0600 |
commit | 251d07aa41b6830a0a2f2a51c14fa94586d843c2 (patch) | |
tree | c53f5a96bc595b914187a4c2be0c9a3084bedb98 /httemplate/search/report_cust_credit_void.html | |
parent | 4771a2fe6202aa77d8e6fda10dc2b221899f3941 (diff) |
RT#27710: Credit voiding
Diffstat (limited to 'httemplate/search/report_cust_credit_void.html')
-rw-r--r-- | httemplate/search/report_cust_credit_void.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/httemplate/search/report_cust_credit_void.html b/httemplate/search/report_cust_credit_void.html new file mode 100644 index 000000000..e96708090 --- /dev/null +++ b/httemplate/search/report_cust_credit_void.html @@ -0,0 +1,50 @@ +<& /elements/header.html, mt($title) &> + +<FORM ACTION="cust_credit_void.html" METHOD="GET"> +<INPUT TYPE="hidden" NAME="magic" VALUE="_date"> + +<TABLE> + + <& /elements/tr-select-user.html, + 'label' => emt('Credit voids by employee: '), + 'access_user' => \%access_user, + &> + + <& /elements/tr-select-agent.html, + 'curr_value' => scalar( $cgi->param('agentnum') ), + 'label' => emt('for agent: '), + 'disable_empty' => 0, + &> + + <& /elements/tr-input-beginning_ending.html &> + + <& /elements/tr-input-lessthan_greaterthan.html, + 'label' => emt('Amount'), + 'field' => 'amount', + &> + +</TABLE> + +<BR> +<INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>"> + +</FORM> + +<& /elements/footer.html &> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); + +my $sth = dbh->prepare("SELECT DISTINCT usernum FROM cust_credit_void") + or die dbh->errstr; +$sth->execute or die $sth->errstr; +my @usernum = map $_->[0], @{$sth->fetchall_arrayref}; +my %access_user = + map { $_ => qsearchs('access_user',{'usernum'=>$_})->username } + @usernum; + +my $title = 'Voided credit report'; + +</%init> |