maintaince module

This commit is contained in:
2026-08-12 21:29:55 +03:00
parent 41c4838dab
commit 55d83c12b0
51 changed files with 8200 additions and 48 deletions
+4 -4
View File
@@ -104,7 +104,7 @@ $skills = $pdo->query("
pt.registration_number
FROM skills s
LEFT JOIN production_lines pl ON s.production_line_id = pl.id
LEFT JOIN production_tools pt ON s.tool_id = pt.id
LEFT JOIN inv_equipment pt ON s.tool_id = pt.id
ORDER BY s.ordinamento ASC, s.id
")->fetchAll(PDO::FETCH_ASSOC);
@@ -113,9 +113,9 @@ $lines = $pdo->query("SELECT id, name FROM production_lines ORDER BY line_number
// Attrezzature per tendina
$tools = $pdo->query("
SELECT id, name, registration_number
FROM production_tools
WHERE is_active = 1
SELECT id, name, registration_number
FROM inv_equipment
WHERE status = 'active'
ORDER BY name
")->fetchAll(PDO::FETCH_ASSOC);
?>