log_write("error", "process", "The service and rate ids do not correct match any known override");
    }
    // verify that the prefix is unique
    if (!$obj_rate_table->verify_rate_prefix_override()) {
        log_write("error", "process", "Another rate override already exists with the supplied prefix - unable to add another one with the same prefix");
        error_flag_field("rate_prefix");
    }
    /*
    	Check for any errors
    */
    if (error_check()) {
        header("Location: ../index.php?page=services/cdr-override.php&id_service=" . $obj_service->id);
        exit(0);
    } else {
        /*
        	Delete Rate Override
        */
        $obj_rate_table->action_rate_delete_override();
        /*
        	Complete
        */
        header("Location: ../index.php?page=services/cdr-override.php&id=" . $obj_service->id);
        exit(0);
    }
    /////////////////////////
} else {
    // user does not have perms to view this page/isn't logged on
    error_render_noperms();
    header("Location: ../index.php?page=message.php");
    exit(0);
}