[freeside-commits] freeside/httemplate/view/cust_main
payment_history.html, 1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Fri Dec 9 08:58:42 PST 2005
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv17839/httemplate/view/cust_main
Modified Files:
payment_history.html
Log Message:
fill in reason if empty when applying a credit to a refund
Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- payment_history.html 21 Nov 2005 12:41:43 -0000 1.6
+++ payment_history.html 9 Dec 2005 16:58:40 -0000 1.7
@@ -229,11 +229,24 @@
$payby =~ s/^(CARD|COMP)$/$1 /;
my $info = $payby ? " ($payby$payinfo)" : '';
+ my $unvoid = '';
+ if ( $cust_pay_void->closed !~ /^Y/i && $conf->exists('unvoid') ) {
+ $unvoid = qq! (<A HREF="javascript:areyousure('!.
+ qq!${p}misc/unvoid-cust_pay_void.cgi?!. $cust_pay_void->paynum.
+ qq!', 'Are you sure you want to unvoid this payment?')"!.
+ qq! TITLE="Unvoid this payment from the database!.
+ ( $cust_pay_void->payby =~ /^(CARD|CHEK)$/
+ ? ' (do not send anything to the payment gateway)'
+ : ''
+ ). '"'.
+ qq!>unvoid</A>)!;
+ }
+
push @history, {
'date' => $cust_pay_void->_date,
'desc' => "<DEL>Payment $info</DEL> <I>voided ".
time2str("%D", $cust_pay_void->void_date).
- " by ". $cust_pay_void->otaker. '</i>',
+ " by ". $cust_pay_void->otaker. '</i>'. $unvoid,
'void_payment' => $cust_pay_void->paid,
};
@@ -313,7 +326,10 @@
push @history, {
'date' => $cust_credit->_date,
'desc' => $pre. "Credit$post by ". $cust_credit->otaker.
- ' ('. $cust_credit->reason. ')'.
+ ( $cust_credit->reason
+ ? ' ('. $cust_credit->reason. ')'
+ : ''
+ ).
"$desc$apply$delete$unapply",
'credit' => $cust_credit->amount,
};
More information about the freeside-commits
mailing list