1 <b><font size="+1" color="#FF0000"><% mt('Pending payment') |h %> </font></b> <% "$info $status ($link)" %>
4 my( $cust_pay_pending, %opt ) = @_;
6 my $conf = new FS::Conf;
8 my $curuser = $FS::CurrentUser::CurrentUser;
10 my $payby = $cust_pay_pending->payby;
13 if ( $payby eq 'CARD' ) {
14 $payinfo = $cust_pay_pending->paymask;
15 } elsif ( $payby eq 'CHEK' ) {
16 my( $account, $aba ) = split('@', $cust_pay_pending->paymask );
17 $payinfo = mt("ABA [_1], Acct #[_2]",$aba,$account);
19 $payinfo = $cust_pay_pending->payinfo;
22 my $target = "$payby$payinfo";
23 $payby = translate_payby($payby,$payinfo);
24 my $info = $payby ? "($payby$payinfo)" : '';
28 'thirdparty' => 'delete',
29 'pending' => 'complete',
30 'captured' => 'capture',
34 $FS::CurrentUser::CurrentUser->access_right('Edit customer pending payments');
36 my $status = "Status: ".$cust_pay_pending->status;
38 my $action = $statusaction{$cust_pay_pending->status};
41 if ( $action && $edit_pending ) {
42 $link = include('/elements/popup_link.html',
43 'action' => $p. 'edit/cust_pay_pending.html'.
44 '?paypendingnum='. $cust_pay_pending->paypendingnum.
46 'label' => mt($action),
49 'height' => ( $action eq 'delete' ? 480 : 575 ),
50 'actionlabel' => mt(ucfirst($action). ' pending payment'),