X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fvoided_payment.html;h=0a8cd107766fc447533095ca72816d7f5270ebfc;hb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;hp=be68ff091a4b29162dfdcf0c2e6483b72dbcc4cf;hpb=06a85a88bfdb0d3fc79ee055eb8327658dfe63ab;p=freeside.git
diff --git a/httemplate/view/cust_main/payment_history/voided_payment.html b/httemplate/view/cust_main/payment_history/voided_payment.html
index be68ff091..0a8cd1077 100644
--- a/httemplate/view/cust_main/payment_history/voided_payment.html
+++ b/httemplate/view/cust_main/payment_history/voided_payment.html
@@ -1,6 +1,10 @@
-Payment <% $info %>
-voided <% time2str($date_format, $cust_pay_void->void_date) %>
-by <% $cust_pay_void->otaker %><% $unvoid %>
+<% mt("Payment [_1] by [_2]", $info, $cust_pay_void->otaker ) |h %>
+<% mt("voided [_1]", time2str($date_format, $cust_pay_void->void_date) ) |h %>
+% my $void_user = $cust_pay_void->void_access_user;
+% if ($void_user) {
+ by <% $void_user->username %>
+% }
+<% $unvoid %>
<%init>
my( $cust_pay_void, %opt ) = @_;
@@ -16,20 +20,12 @@ if ( $payby eq 'CARD' ) {
$payinfo = $cust_pay_void->paymask;
} elsif ( $payby eq 'CHEK' ) {
my( $account, $aba ) = split('@', $cust_pay_void->paymask );
- $payinfo = "ABA $aba, Acct #$account";
+ $payinfo = mt("ABA [_1], Acct #[_2]",$aba,$account);
} else {
$payinfo = $cust_pay_void->payinfo;
}
-$payby =~ s/^BILL$/Check #/ if $payinfo;
-$payby =~ s/^CHEK$/Electronic check /;
-$payby =~ s/^PREP$/Prepaid card /;
-$payby =~ s/^CARD$/Credit card #/;
-$payby =~ s/^COMP$/Complimentary by /;
-$payby =~ s/^CASH$/Cash/;
-$payby =~ s/^WEST$/Western Union/;
-$payby =~ s/^MCRD$/Manual credit card/;
-$payby =~ s/^BILL$//;
+$payby = translate_payby($payby,$payinfo);
my $info = $payby ? "($payby$payinfo)" : '';
if ( $opt{'pkg-balances'} && $cust_pay_void->pkgnum ) {
@@ -45,12 +41,12 @@ if ( $cust_pay_void->closed !~ /^Y/i
$unvoid = qq! (payby =~ /^(CARD|CHEK)$/
- ? ' (do not send anything to the payment gateway)'
+ ? ' ('.mt('do not send anything to the payment gateway') .')'
: ''
). '"'.
- qq!>unvoid)!;
+ '>'.mt('unvoid').')';
}
%init>