]> git.mjollnir.org Git - moodle.git/commitdiff
Echecks can not be cancelled.
authorethem <ethem>
Fri, 1 Sep 2006 17:16:08 +0000 (17:16 +0000)
committerethem <ethem>
Fri, 1 Sep 2006 17:16:08 +0000 (17:16 +0000)
2 actions only for echecks: auth_capture and credit

enrol/authorize/locallib.php

index 31c5697eff062fa4856ee256a477e1c04597ed37..483a8fa7b858296ba30aa43f6e925fe109e31240 100644 (file)
@@ -210,7 +210,7 @@ function authorize_print_order_details($orderno)
             $table->data[] = array("<b>$authstrs->nameoncard:</b>", $order->ccname);
         }
         else {
-               $table->data[] = array("<b>$authstrs->echeckfirslasttname:</b>", $order->ccname);
+            $table->data[] = array("<b>$authstrs->echeckfirslasttname:</b>", $order->ccname);
         }
         $table->data[] = array("<b>$strs->time:</b>", userdate($order->timecreated));
         $table->data[] = array("<b>$authstrs->settlementdate:</b>", $settled ?
@@ -584,7 +584,8 @@ function authorize_get_status_action($order)
             $ret->status = 'settled';
         }
         else {
-            if (has_capability('enrol/authorize:managepayments', $context)) {
+            if ($order->paymentmethod == AN_METHOD_CC &&
+                has_capability('enrol/authorize:managepayments', $context)) {
                 $ret->actions = array(ORDER_VOID);
             }
             $ret->status = 'refunded';