<?php
require_once __DIR__ . '/../../../config/db.php';

$job_id = (int)($_POST['job_id'] ?? 0);

if ($job_id > 0) {
    $stmt = $conn->prepare("
        UPDATE print_jobs
        SET statut='printed', printed_at=NOW()
        WHERE id=?
    ");
    $stmt->execute([$job_id]);
}
