} else {
                $obj_refund->load_data();
            }
        }
    }
    /*
    	Check for any errors
    */
    if (error_check()) {
        header("Location: ../index.php?page=customers/credit.php&id_customer=" . $obj_customer->id . "&id_refund=" . $obj_refund->id);
        exit(0);
    } else {
        /*
        	Delete Credit Refund
        */
        $obj_refund->action_delete();
        if (!error_check()) {
            log_write("notification", "process", "Successfully removed credit refund");
        }
        /*
        	Return
        */
        header("Location: ../index.php?page=customers/credit.php&id_customer=" . $obj_customer->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);
}