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, $payinfo) = translate_payinfo($cust_pay_pending);
11 my $target = "$payby$payinfo";
12 $payby = translate_payby($payby,$payinfo);
13 my $info = $payby ? "($payby$payinfo)" : '';
17 'thirdparty' => 'delete',
18 'pending' => 'complete',
19 'captured' => 'capture',
23 $FS::CurrentUser::CurrentUser->access_right('Edit customer pending payments');
25 my $status = emt("Status: [_1]",$cust_pay_pending->status);
27 my $action = $statusaction{$cust_pay_pending->status};
30 if ( $action && $edit_pending ) {
31 $link = include('/elements/popup_link.html',
32 'action' => $p. 'edit/cust_pay_pending.html'.
33 '?paypendingnum='. $cust_pay_pending->paypendingnum.
35 'label' => emt($action),
38 'height' => ( $action eq 'delete' ? 480 : 575 ),
39 'actionlabel' => emt(ucfirst($action). ' pending payment'),