X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Frefund.html;h=154525d546f1a13cd8f31e302a7bfa4b2b964fb2;hp=4a48fea1e3288847bf44e5ab284984943e98319f;hb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;hpb=2238711675eefa60cd2feb47c8d3e43d3e6f1860 diff --git a/httemplate/view/cust_main/payment_history/refund.html b/httemplate/view/cust_main/payment_history/refund.html index 4a48fea1e..154525d54 100644 --- a/httemplate/view/cust_main/payment_history/refund.html +++ b/httemplate/view/cust_main/payment_history/refund.html @@ -1,6 +1,6 @@ -<% $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 ) = @_; @@ -12,23 +12,18 @@ my $payinfo = $payby eq 'CARD' ? $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 = 'Unapplied '; - $post = ''; -} +my $refund = mt('Refund'); +$refund = '' . mt('Unapplied Refund') . '' + 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'), ). ')'; @@ -42,8 +37,8 @@ if ( $cust_refund->closed !~ /^Y/i $delete = qq! (delete)!; + qq! TITLE="!.mt('Delete this refund from the database completely - not recommended'). + ">".mt('delete').")"; }