Update add_intervento.php (#752)

Escludi interventi associati ad un contratto
This commit is contained in:
stefanostc 2020-02-27 16:55:04 +01:00 committed by GitHub
parent a193db5e06
commit 6060b23cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ $rs = $dbo->fetchArray('SELECT
AND in_statiintervento.completato=1
AND in_interventi.id NOT IN (SELECT idintervento FROM co_righe_documenti WHERE idintervento IS NOT NULL)
AND in_interventi.id_preventivo IS NULL
AND in_interventi.id_contratto IS NULL
AND NOT in_interventi.id IN (SELECT idintervento FROM co_promemoria WHERE idintervento IS NOT NULL)');
foreach ($rs as $key => $value) {
$intervento = \Modules\Interventi\Intervento::find($value['id']);