0 && $_REQUEST['type'] == 'deleted') { $TitleText = "Deleted $TitleText"; } // Start the template and output buffering startTemplate(); $templatePageTitle = $TitleText; // Ensure that only valid user types have access to this module if (!in_array($_SESSION['UserInfo']['type'],array('SuperUser','System Administrator','Application Administrator','Administration Team','Schedule Team','Financial','Financial Team'))) { echo("
\n"); $error_message = getLanguageText('ERRORMSG-ACCESS-DENIED'); include "form.messages.php"; return; } $school_num = $school_record['record_num']; ?>
0) { ?>

Click on the word "Error" to post transactions that need to be posted.
Do not post "Pending" transactions.

-

0) $mc_gross = "$" . number_format($mc_gross,2); if ($mc_fee > 0) $mc_fee = "$" . number_format($mc_fee,2); // Add info tips if ($payment_status == 'Pending') { $span_id = "status_$record_num"; $otipSpans .= "
 
\n"; $otipSpanIDs[] = $span_id; $payment_status = "Pending"; } // Unknown posting results if ($posting_result == '') { $results = db_query("SELECT * FROM user_account WHERE school_num = $school_num AND payment_reference = '$txn_id'"); if (db_num_rows($results) > 0) { $posting_result = 'Posted'; } else { $posting_result = 'Error'; } } // Error postings if ($posting_result == 'Error') { $span_id = "result_$record_num"; $unum = intval($user_num); if (strlen($posting_message) == 0) $posting_message = "Unknown Posting Error"; if ($unum > 0) { $otipSpans .= "\n"; } else { $otipSpans .= "\n"; } $otipSpanIDs[] = $span_id; $onClick = "onClick='return confirm(\"This will post the transaction to the user account. Only post if the transaction has cleared.\");'"; if ($unum > 0) $posting_result = "Error"; else { $posting_result = "Error"; } } // Successful postings if ($posting_result == 'Posted') { $span_id = "result_$record_num"; $results = db_query("SELECT * FROM user_account WHERE school_num = $school_num AND payment_reference = '$txn_id'"); if (db_num_rows($results) > 0) { $otipSpanIDs[] = $span_id; $otipSpans .= "\n"; $posting_result = "Posted"; } else { if ($row['payment_status'] != 'Pending') { $otipSpanIDs[] = $span_id; $otipSpans .= "\n"; $posting_result = "" . "Warning"; } else { $posting_result = "Pending"; } } } // Format name $name = "$first_name $last_name"; if (is_numeric($user_num) && $user_num > 0) { $results = db_query("SELECT * FROM users WHERE record_num = $user_num"); $row = db_fetch_array($results); $span_id = "user_$user_num"; if (!in_array($span_id,$otipSpanIDs)) { $user_balance = db_getVal("select sum(transaction_amount) as balance from user_account where school_num = $school_num and user_num = $user_num AND (deleted != 'Y' OR deleted IS NULL)"); $user_balance = floatval($user_balance); $otipSpans .= "\n"; $otipSpanIDs[] = $span_id; } $name = "$name"; $payer_email = "$payer_email"; } $msg = getLanguageText('TEXT-CONFIRM-STATUS-CHANGE'); $msg .= "\\n\\n" . getLanguageText('TEXT-WILL-NOT-POST-TRANSACTION'); if ($error_handled == 'N') $command = "$delete_icon"; else $command = "$change_icon"; ?> \n"); displayLanguageText('ERRORMSG-NO-RECORDS'); echo("
\n"); } if ($numErrors > 0) { ?>