1 <b><font size="+1" color="#FF0000"><% mt('Pending payment') |h %> </font></b> <% "$info $status ($link)" %>
4 my( $cust_pay_pending, %opt ) = @_;
6 my ($payby, $payinfo) = translate_payinfo($cust_pay_pending);
7 my $target = "$payby$payinfo";
8 $payby = translate_payby($payby,$payinfo);
9 my $info = $payby ? "($payby$payinfo)" : '';
13 'thirdparty' => 'delete',
14 'pending' => 'complete',
15 'authorized' => 'complete',
16 'captured' => 'capture',
20 $FS::CurrentUser::CurrentUser->access_right('Edit customer pending payments');
22 my $status = emt("Status: [_1]",$cust_pay_pending->status);
24 my $action = $statusaction{$cust_pay_pending->status};
27 if ( $action && $edit_pending ) {
28 $link = include('/elements/popup_link.html',
29 'action' => $p. 'edit/cust_pay_pending.html'.
30 '?paypendingnum='. $cust_pay_pending->paypendingnum.
32 'label' => emt($action),
35 'height' => ( $action eq 'delete' ? 480 : 575 ),
36 'actionlabel' => emt(ucfirst($action). ' pending payment'),