1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 22:03:18 +01:00

Fix query di aggiornamento database su sconto interventi

This commit is contained in:
loviuz 2019-05-06 17:43:25 +02:00
parent d16e9df4b2
commit a3da822ad0

View File

@ -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'];