<?php
require_once __DIR__ . '/../includes/db.php';
$data = json_decode(file_get_contents('php://input'), true);

$stmt = $pdo->prepare("
DELETE FROM bol_document_field_props
WHERE bol_id=? AND field_id=?
");
$stmt->execute([$data['bol_id'],$data['field_id']]);
echo json_encode(['ok'=>true]);
