1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-14 16:36:51 +01:00
This commit is contained in:
Luca 2019-05-06 18:08:32 +02:00
commit 26d8950273

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 AND sconto_globale != NULL');
foreach ($interventi as $intervento) {
$costi = get_costi_intervento($intervento['id']);
$sconto_globale = $costi['sconto_globale'];