From: ivan Date: Tue, 17 Nov 2009 07:08:59 +0000 (+0000) Subject: add refund report, RT#6407 X-Git-Tag: freeside_1_9_2~228 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=81231926bf1cc4d85e70c013d7e92d2cd280395b;p=freeside.git add refund report, RT#6407 --- diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index c54ed0715..17b8913f1 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -236,6 +236,7 @@ if($curuser->access_right('Financial reports')) { 'Sales Report' => [ $fsurl.'graph/report_cust_bill_pkg.html', 'Sales report and graph (by agent, package class and/or date range)' ], 'Rated Call Sales Report' => [ $fsurl.'graph/report_cust_bill_pkg_detail.html', 'Sales report and graph (by agent, package class, usage class and/or date range)' ], 'Credit Report' => [ $fsurl.'search/report_cust_credit.html', 'Credit report (by employee and/or date range)' ], + 'Refund Report' => [ $fsurl.'search/report_cust_refund.html', 'Refund report (by type and/or date range)' ], ); $report_financial{'A/R Aging'} = [ $fsurl.'search/report_receivables.html', 'Accounts Receivable Aging report' ]; $report_financial{'Prepaid Income'} = [ $fsurl.'search/report_prepaid_income.html', 'Prepaid income (unearned revenue) report' ]; diff --git a/httemplate/search/report_cust_refund.html b/httemplate/search/report_cust_refund.html new file mode 100644 index 000000000..2197593da --- /dev/null +++ b/httemplate/search/report_cust_refund.html @@ -0,0 +1,114 @@ +<% include('/elements/header.html', $title ) %> + +
+ + + + + + + + + + + + + + + + + + + + + <% include( '/elements/tr-select-agent.html', + 'curr_value' => scalar($cgi->param('agentnum')), + 'label' => 'for agent: ', + 'disable_empty' => 0, + ) + %> + + + + + + +% if ( $void ) { + + + + +% } + + <% include( '/elements/tr-input-lessthan_greaterthan.html', + 'label' => 'Amount', + 'field' => 'paid', + ) + %> + +
+ Search options +
Refunds of type: + +
Check #: + +
Refund + + <% include( '/elements/tr-input-beginning_ending.html', + layout => 'horiz', + ) + %> +
+
Voided + + <% include( '/elements/tr-input-beginning_ending.html', + prefix => 'void', + layout => 'horiz', + ) + %> +
+
+ +
+ + +
+ +<% include('/elements/footer.html') %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Financial reports'); + +my $void = $cgi->param('void') ? 1 : 0; + +my $title = $void ? 'Voided refund report' : 'Refund report'; + +