X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fpending_payment.html;h=cf7ef7c0852f639448306fd00f491a2cdda8d892;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hp=3da5a622936d9a0eda5b18795d0cde4d1742a238;hpb=170aa1e8078280e7c03a6ebfc67280de66fa1b9d;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/pending_payment.html b/httemplate/view/cust_main/payment_history/pending_payment.html index 3da5a6229..cf7ef7c08 100644 --- a/httemplate/view/cust_main/payment_history/pending_payment.html +++ b/httemplate/view/cust_main/payment_history/pending_payment.html @@ -3,22 +3,7 @@ my( $cust_pay_pending, %opt ) = @_; -my $conf = new FS::Conf; - -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 = mt("ABA [_1], Acct #[_2]",$aba,$account); -} else { - $payinfo = $cust_pay_pending->payinfo; -} - +my ($payby, $payinfo) = translate_payinfo($cust_pay_pending); my $target = "$payby$payinfo"; $payby = translate_payby($payby,$payinfo); my $info = $payby ? "($payby$payinfo)" : ''; @@ -27,13 +12,14 @@ my %statusaction = ( 'new' => 'delete', 'thirdparty' => 'delete', 'pending' => 'complete', + 'authorized' => 'complete', 'captured' => 'capture', ); my $edit_pending = $FS::CurrentUser::CurrentUser->access_right('Edit customer pending payments'); -my $status = "Status: ".$cust_pay_pending->status; +my $status = emt("Status: [_1]",$cust_pay_pending->status); my $action = $statusaction{$cust_pay_pending->status}; @@ -43,11 +29,11 @@ if ( $action && $edit_pending ) { 'action' => $p. 'edit/cust_pay_pending.html'. '?paypendingnum='. $cust_pay_pending->paypendingnum. ";action=$action", - 'label' => mt($action), + 'label' => emt($action), 'color' => '#ff0000', 'width' => 655, 'height' => ( $action eq 'delete' ? 480 : 575 ), - 'actionlabel' => mt(ucfirst($action). ' pending payment'), + 'actionlabel' => emt(ucfirst($action). ' pending payment'), ); }