From 2c46669ba1dd1eeb2ca46306758df90a5e2522df Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 30 Oct 2006 11:16:09 +0000 Subject: [PATCH] New string: All Pending Orders --- enrol/authorize/index.php | 2 +- enrol/authorize/locallib.php | 5 +++++ lang/en_utf8/enrol_authorize.php | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/enrol/authorize/index.php b/enrol/authorize/index.php index 7d8491992ab..aa1876e5ca2 100644 --- a/enrol/authorize/index.php +++ b/enrol/authorize/index.php @@ -23,7 +23,7 @@ /// Load strings. All strings should be defined here. locallib.php uses these strings. $strs = get_strings(array('search','status','action','time','course','confirm','no','all','none','error')); $authstrs = get_strings(array('orderid','nameoncard','echeckfirslasttname','void','capture','refund','delete', - 'authcaptured','authorizedpendingcapture','capturedpendingsettle','settled', + 'allpendingorders','authcaptured','authorizedpendingcapture','capturedpendingsettle','settled', 'refunded','cancelled','expired','underreview','approvedreview','reviewfailed','tested','new', 'paymentmethod','methodcc','methodecheck', 'transid','settlementdate','notsettled','amount','unenrolstudent'), 'enrol_authorize'); diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index b188cf00ebc..090a3e874e2 100644 --- a/enrol/authorize/locallib.php +++ b/enrol/authorize/locallib.php @@ -33,6 +33,7 @@ function authorize_print_orders($courseid, $userid) $baseurl = $CFG->wwwroot."/enrol/authorize/index.php?user=$userid"; $statusmenu = array(AN_STATUS_NONE => $strs->all, + AN_STATUS_AUTH | AN_STATUS_UNDERREVIEW | AN_STATUS_APPROVEDREVIEW => $authstrs->allpendingorders, AN_STATUS_AUTH => $authstrs->authorizedpendingcapture, AN_STATUS_AUTHCAPTURE => $authstrs->authcaptured, AN_STATUS_CREDIT => $authstrs->refunded, @@ -100,6 +101,10 @@ function authorize_print_orders($courseid, $userid) if ($status > AN_STATUS_NONE) { switch ($status) { + case AN_STATUS_AUTH | AN_STATUS_UNDERREVIEW | AN_STATUS_APPROVEDREVIEW: + $where .= 'AND (e.status IN('.AN_STATUS_AUTH.','.AN_STATUS_UNDERREVIEW.','.AN_STATUS_APPROVEDREVIEW.')) '; + break; + case AN_STATUS_CREDIT: $from .= "INNER JOIN {$CFG->prefix}enrol_authorize_refunds r ON e.id = r.orderid "; $where .= "AND (e.status = '" . AN_STATUS_AUTHCAPTURE . "') "; diff --git a/lang/en_utf8/enrol_authorize.php b/lang/en_utf8/enrol_authorize.php index a85afa959f6..8fc586ec185 100644 --- a/lang/en_utf8/enrol_authorize.php +++ b/lang/en_utf8/enrol_authorize.php @@ -40,6 +40,7 @@ $string['adminnewordersubject'] = '$a->course; New Pending Order: $a->orderid'; $string['adminpendingorders'] = 'You have disabled scheduled-capture feature.
Total $a->count transactions with the status of \'Authorized/Pending Capture\' are to be cancelled unless you check them.
To accept/deny payments, go to url\'>Payment Management page.'; $string['adminreview'] = 'Review order before processing the credit card.'; $string['adminteachermanagepay'] = 'Teachers can manage the payments of the course.'; +$string['allpendingorders'] = 'All Pending Orders'; $string['amount'] = 'Amount'; $string['anlogin'] = 'Authorize.net: Login name'; $string['anpassword'] = 'Authorize.net: Password';