1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-28 00:30:45 +01:00

Fix cleanup righe interventi per applicazione

This commit is contained in:
Dasc3er 2021-02-25 18:30:08 +01:00
parent b7ee35bf6c
commit f6905aad3a

View File

@ -54,12 +54,9 @@ class RigheInterventi extends AppResource
FROM in_righe_interventi
INNER JOIN in_interventi ON in_interventi_tecnici.idintervento = in_interventi.id
WHERE
in_interventi.id IN ('.implode(',', $interventi).')
OR (orario_fine NOT BETWEEN :period_start AND :period_end)';
$records = database()->fetchArray($query, [
':period_end' => $end,
':period_start' => $start,
]);
in_interventi.id IN ('.implode(',', $interventi).')';
$records = database()->fetchArray($query);
$da_interventi = array_column($records, 'id');
}