2 (<% "$payby$payinfo" %>)
6 my( $cust_refund, %opt ) = @_;
8 my $payby = $cust_refund->payby;
9 my $payinfo = $payby eq 'CARD'
10 ? $cust_refund->paymask
11 : $cust_refund->payinfo;
12 $payby = translate_payby_refund($payby,$payinfo);
14 my $refund = emt("Refund by [_1]",$cust_refund->otaker);
15 $refund = '<B><FONT COLOR="#FF0000">'
16 . emt("Unapplied Refund by [_1]",$cust_refund->otaker)
18 if $cust_refund->unapplied > 0;
21 ' ('. include('/elements/popup_link.html',
22 'label' => emt('view receipt'),
23 'action' => "${p}view/cust_refund.html?link=popup;".
24 'refundnum='. $cust_refund->refundnum,
25 'actionlabel' => emt('Payment Receipt'),
30 $delete = areyousure_link("${p}misc/delete-cust_refund.cgi?".$cust_refund->refundnum,
31 emt('Are you sure you want to delete this refund?'),
32 emt('Delete this refund from the database completely - not recommended'),
35 if $cust_refund->closed !~ /^Y/i
36 && $opt{'deleterefunds'}
37 && $opt{'Delete refund'};