Patentes - Agentes Aduanales

This commit is contained in:
2025-06-13 12:03:40 -06:00
parent b0b9672f11
commit c576ab5b3b
24 changed files with 2581 additions and 929 deletions

View File

@@ -462,7 +462,6 @@ function actualizar()
}
function eliminar() {
session_start();
if (!($_SESSION['usuario_id'] ?? false)) {
header('Location: /IMPORTADORES/login');
exit;
@@ -486,7 +485,7 @@ function eliminar() {
}
// ELIMINACIÓN REAL - DELETE en lugar de UPDATE
$sqlDel = "DELETE FROM dbo.transportistas WHERE id_transportista = ?";
$sqlDel = "UPDATE dbo.transportistas SET activo = 0 WHERE id_transportista = ?";
$stmtDel = sqlsrv_query($conn, $sqlDel, [$id]);
if ($stmtDel === false) {
die("❌ Error al eliminar: " . print_r(sqlsrv_errors(), true));