<?php
// fetch_transactions.php — initial transaction list (defaults to last 30 days)
// Forwards to search_transactions.php with default date range

require 'auth_check.php';

// Default: last 30 days
$_GET['date_from'] = $_GET['date_from'] ?? date('Y-m-d', strtotime('-30 days'));
$_GET['page']      = $_GET['page']      ?? 1;

include __DIR__ . '/search_transactions.php';
