From: ethem Date: Fri, 1 Sep 2006 17:16:08 +0000 (+0000) Subject: Echecks can not be cancelled. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d69ce8d4eb1ffefc96351b9bf92375d8647688ba;p=moodle.git Echecks can not be cancelled. 2 actions only for echecks: auth_capture and credit --- diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index 31c5697eff..483a8fa7b8 100644 --- a/enrol/authorize/locallib.php +++ b/enrol/authorize/locallib.php @@ -210,7 +210,7 @@ function authorize_print_order_details($orderno) $table->data[] = array("$authstrs->nameoncard:", $order->ccname); } else { - $table->data[] = array("$authstrs->echeckfirslasttname:", $order->ccname); + $table->data[] = array("$authstrs->echeckfirslasttname:", $order->ccname); } $table->data[] = array("$strs->time:", userdate($order->timecreated)); $table->data[] = array("$authstrs->settlementdate:", $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';