X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fattempted_payment.html;h=1a705b7f80d58585f68a1dd7239fd5cb453acd13;hb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;hp=554aa737d1ec4a29ccd05da31e034692d0a07e5b;hpb=2238711675eefa60cd2feb47c8d3e43d3e6f1860;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/attempted_payment.html b/httemplate/view/cust_main/payment_history/attempted_payment.html index 554aa737d..1a705b7f8 100644 --- a/httemplate/view/cust_main/payment_history/attempted_payment.html +++ b/httemplate/view/cust_main/payment_history/attempted_payment.html @@ -1,4 +1,4 @@ -Payment attempt <% $info |h %> +<% mt('Payment attempt') |h %> <% $info |h %> <%init> my( $cust_pay_pending, %opt ) = @_; @@ -14,20 +14,12 @@ if ( $payby eq 'CARD' ) { $payinfo = $cust_pay_pending->paymask; } elsif ( $payby eq 'CHEK' ) { my( $account, $aba ) = split('@', $cust_pay_pending->paymask ); - $payinfo = "ABA $aba, Acct #$account"; + $payinfo = mt("ABA [_1], Acct #[_2]",$aba,$account); } else { $payinfo = $cust_pay_pending->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_pending->pkgnum ) {