<?php
require_once __DIR__ . '/../../app/includes/auth.php';
require_auth(); verify_csrf();
require __DIR__ . '/save.php';
$id = save_quotation((int)($_GET['id'] ?? 0));
flash('success', 'Quotation updated successfully.');
redirect('/quotations/view.php?id=' . $id);
