[freeside-commits] freeside/httemplate/search report_cust_pay.html, 1.18, 1.19 cust_pay_void.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Mon Jul 27 02:07:26 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv28421/httemplate/search
Modified Files:
report_cust_pay.html
Added Files:
cust_pay_void.html
Log Message:
voided payment report, RT#5786
Index: report_cust_pay.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cust_pay.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- report_cust_pay.html 10 Dec 2008 21:43:43 -0000 1.18
+++ report_cust_pay.html 27 Jul 2009 09:07:24 -0000 1.19
@@ -1,6 +1,6 @@
-<% include('/elements/header.html', 'Payment report' ) %>
+<% include('/elements/header.html', $title ) %>
-<FORM ACTION="cust_pay.cgi" METHOD="GET">
+<FORM ACTION="<% $void ? 'cust_pay_void.html' : 'cust_pay.cgi' %>" METHOD="GET">
<INPUT TYPE="hidden" NAME="magic" VALUE="_date">
<TABLE>
@@ -76,4 +76,8 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+my $void = $cgi->param('void') ? 1 : 0;
+
+my $title = $void ? 'Voided payment report' : 'Payment report';
+
</%init>
--- NEW FILE: cust_pay_void.html ---
<% include( 'elements/cust_pay_or_refund.html',
'thing' => 'pay_void',
'amount_field' => 'paid',
'name_singular' => 'voided payment',
'name_verb' => 'voided', # 'paid',
'disable_by' => 1, #showing original not voiding otaker
'addl_header' => [ 'Void Date', ], # 'Void Reason' ],
'addl_fields' => [
sub { time2str('%b %d %Y', shift->void_date ) },
#'reason',
],
)
%>
More information about the freeside-commits
mailing list