Update add_intervento.php (#752)
Escludi interventi associati ad un contratto
This commit is contained in:
parent
a193db5e06
commit
6060b23cfb
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue