From 432baf42fed3c38b150a12f662e7152d51cbb044 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 17 Nov 2009 07:09:43 +0000 Subject: [PATCH] add refund report, RT#6407 --- httemplate/elements/menu.html | 1 + httemplate/search/report_cust_refund.html | 114 ++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 httemplate/search/report_cust_refund.html diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 5329350dc..ccee9c3a7 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'; + + -- 2.11.0