[freeside-commits] freeside/httemplate/view/cust_main
payment_history.html, 1.19, 1.20
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Jan 8 09:36:55 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv31164/httemplate/view/cust_main
Modified Files:
payment_history.html
Log Message:
refund deletion
Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- payment_history.html 24 Dec 2006 01:28:38 -0000 1.19
+++ payment_history.html 8 Jan 2007 17:36:53 -0000 1.20
@@ -372,9 +372,23 @@
% $payby =~ s/^CHEK$/Electronic check /;
% $payby =~ s/^(CARD|COMP)$/$1 /;
%
+% my $delete = '';
+% if ( $cust_refund->closed !~ /^Y/i
+% && $conf->exists('deleterefunds')
+% && $curuser->access_right('Delete refund')
+% )
+% {
+% $delete = qq! (<A HREF="javascript:areyousure('!.
+% qq!${p}misc/delete-cust_refund.cgi?!. $cust_refund->refundnum.
+% qq!', 'Are you sure you want to delete this refund?')"!.
+% qq! TITLE="Delete this refund from the database completely - not recommended"!.
+% qq!>delete</A>)!;
+% }
+%
% push @history, {
% 'date' => $cust_refund->_date,
-% 'desc' => "Refund ($payby$payinfo) by ". $cust_refund->otaker,
+% 'desc' => "Refund ($payby$payinfo) by ". $cust_refund->otaker. "<BR>".
+% $delete,
% 'refund' => $cust_refund->refund,
% };
%
More information about the freeside-commits
mailing list