Line 82 of /admin/all_invoices.php (highlighted below) ...
Code:
} elseif (isset($_POST['resetids'])) {
// clean POST list back to an iterable array
$pending_orders = preg_replace('/[^0-9,]/', ',', $_POST['resetids']);
$pending_orders = preg_replace('/,+/', ',', $pending_orders);
$pending_orders = explode(',', $pending_orders);
$status = 2; // set to Processed
foreach ($pending_orders as $oID) {
$sql = "UPDATE " . TABLE_ORDERS . " SET orders_status = " . (int)$status . ", last_modified = now() where orders_id = " . (int)$oID;
$db->Execute($sql);
$db->Execute("insert into " . TABLE_ORDERS_STATUS_HISTORY . "
(orders_id, orders_status_id, date_added, customer_notified)
values ('" . (int)$oID . "', " . (int)$status . ", now(), 0)");
}
... change from 2 to 3.