RT#42393: Verification cust_pay_pending handling in history & report
[freeside.git] / httemplate / view / cust_main / payment_history / pending_payment.html
index 6c7c103..cf7ef7c 100644 (file)
@@ -3,10 +3,6 @@
 
 my( $cust_pay_pending, %opt ) = @_;
 
-my $conf = new FS::Conf;
-
-my $curuser = $FS::CurrentUser::CurrentUser;
-
 my ($payby, $payinfo) = translate_payinfo($cust_pay_pending);
 my $target = "$payby$payinfo";
 $payby = translate_payby($payby,$payinfo);
@@ -16,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 = mt("Status: [_1]",$cust_pay_pending->status);
+my $status = emt("Status: [_1]",$cust_pay_pending->status);
 
 my $action = $statusaction{$cust_pay_pending->status};
 
@@ -32,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'),
            );
 }