From cae01f1092e8d60b53e1188338f0de98f2ac9abf Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Fri, 14 May 2021 16:16:09 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20creazione=20attivit=C3=A0=20da=20document?= =?UTF-8?q?o=20con=20descrizione?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/common/importa.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/common/importa.php b/include/common/importa.php index 67d03ccba..f0e94170b 100755 --- a/include/common/importa.php +++ b/include/common/importa.php @@ -34,7 +34,12 @@ $final_module = Modules::get($name); // IVA predefinita $id_iva = $id_iva ?: setting('Iva predefinita'); -$righe = $documento->getRighe()->where('qta_rimanente', '>', 0); +if($final_module['name']=='Interventi'){ + $righe = $documento->getRighe()->where('qta_rimanente', '>', 0)->where('is_descrizione', '=', 0); +}else{ + $righe = $documento->getRighe()->where('qta_rimanente', '>', 0); +} + if (empty($righe)) { echo '

'.tr('Non ci sono elementi da evadere').'...

';