<?php
session_start();
if (!isset($_SESSION['username'])) { header("location:login"); exit; }
include 'master.php';

$id = (int)($_GET['id'] ?? 0);
if ($id > 0) {
    $stmt = $conn->prepare("DELETE FROM tax_refunds WHERE id = ?");
    $stmt->bind_param('i', $id);
    $stmt->execute();
    $stmt->close();
}

header("location:tax-refunds");
exit;
