-<% $pre %>Refund<% $post %>
+<% $refund %>
(<% $payby. $payinfo %>)
-by <% $cust_refund->otaker %><% $view %><% $delete %>
+<% mt('by') |h %> <% $cust_refund->otaker %><% $view %><% $delete %>
<%init>
my( $cust_refund, %opt ) = @_;
? $cust_refund->paymask
: $cust_refund->payinfo;
-$payby =~ s/^BILL$/Check #/ if $payinfo;
-$payby =~ s/^BILL$/Check/;
-$payby =~ s/^CHEK$/Electronic check /;
-$payby =~ s/^(CARD|COMP)$/$1 /;
+$payby = translate_payby_refund($payby,$payinfo);
-my($pre, $post) = ('', '');
-if ( $cust_refund->unapplied > 0 ) {
- $pre = '<B><FONT COLOR="#FF0000">Unapplied ';
- $post = '</FONT></B>';
-}
+my $refund = mt('Refund');
+$refund = '<B><FONT COLOR="#FF0000">' . mt('Unapplied Refund') . '</FONT></B>'
+ if $cust_refund->unapplied > 0;
my $view =
' ('. include('/elements/popup_link.html',
- 'label' => 'view receipt',
+ 'label' => mt('view receipt'),
'action' => "${p}view/cust_refund.html?link=popup;".
'refundnum='. $cust_refund->refundnum,
- 'actionlabel' => 'Payment Receipt',
+ 'actionlabel' => mt('Payment Receipt'),
).
')';
$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>)!;
+ qq! TITLE="!.mt('Delete this refund from the database completely - not recommended').
+ ">".mt('delete')."</A>)";
}
</%init>