From a3da822ad03b539e3b367f167f7230508d117855 Mon Sep 17 00:00:00 2001 From: loviuz Date: Mon, 6 May 2019 17:43:25 +0200 Subject: [PATCH] Fix query di aggiornamento database su sconto interventi --- update/2_4_9.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/2_4_9.php b/update/2_4_9.php index eb4db03ba..ba3d8a60b 100644 --- a/update/2_4_9.php +++ b/update/2_4_9.php @@ -7,7 +7,7 @@ include_once DOCROOT.'/modules/interventi/modutil.php'; $id_iva = setting('Iva predefinita'); $iva = $dbo->fetchOne('SELECT * FROM co_iva WHERE id='.prepare($id_iva)); -$interventi = $dbo->fetchArray('SELECT * FROM in_interventi WHERE sconto_globale != 0'); +$interventi = $dbo->fetchArray('SELECT * FROM in_interventi WHERE sconto_globale != 0 OR sconto_globale != NULL'); foreach ($interventi as $intervento) { $costi = get_costi_intervento($intervento['id']); $sconto_globale = $costi['sconto_globale'];