X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fattempted_payment.html;h=f044fc0d47efce75602c987ed8e735505f5da3fb;hb=93519f9371b41ded713a93fba031ed7a361be04c;hp=554aa737d1ec4a29ccd05da31e034692d0a07e5b;hpb=42a1267af992831cb8069835a18b8672a5f9afcb;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..f044fc0d4 100644 --- a/httemplate/view/cust_main/payment_history/attempted_payment.html +++ b/httemplate/view/cust_main/payment_history/attempted_payment.html @@ -1,33 +1,10 @@ -Payment attempt <% $info |h %> +<% mt('Payment attempt') |h %> <% $info |h %> <%init> my( $cust_pay_pending, %opt ) = @_; -my $date_format = $opt{'date_format'} || '%m/%d/%Y'; - -my $curuser = $FS::CurrentUser::CurrentUser; - -my $payby = $cust_pay_pending->payby; - -my $payinfo; -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"; -} 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$//; +my ($payby,$payinfo) = translate_payinfo($cust_pay_pending); +$payby = translate_payby($payby,$payinfo); my $info = $payby ? "($payby$payinfo)" : ''; if ( $opt{'pkg-balances'} && $cust_pay_pending->pkgnum ) {