[freeside-commits] freeside/httemplate/view/cust_main
payment_history.html, 1.2, 1.3
Ivan,,,
ivan at wavetail.420.am
Thu Oct 6 00:35:00 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv2295/httemplate/view/cust_main
Modified Files:
payment_history.html
Log Message:
add cc-void option
Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- payment_history.html 12 Mar 2005 14:31:47 -0000 1.2
+++ payment_history.html 6 Oct 2005 07:34:58 -0000 1.3
@@ -118,14 +118,14 @@
my $void = '';
if ( $cust_pay->closed !~ /^Y/i
- && $cust_pay->payby ne 'CARD'
+ && ( $cust_pay->payby ne 'CARD' || $conf->exists('cc-void') )
&& ( $cust_pay->payby ne 'CHEK' || $conf->exists('echeck-void') )
) {
$void = qq! (<A HREF="javascript:areyousure('!.
qq!${p}misc/void-cust_pay.cgi?!. $cust_pay->paynum.
qq!', 'Are you sure you want to void this payment?')"!.
qq! TITLE="Void this payment from the database!.
- ( $cust_pay->payby eq 'CHEK'
+ ( $cust_pay->payby =~ /^(CARD|CHEK)$/
? ' (do not send anything to the payment gateway)'
: ''
). '"'.
More information about the freeside-commits
mailing list