From ea4043ccd4225ddcf4b03d2e853841a7e172da7a Mon Sep 17 00:00:00 2001 From: loviuz Date: Thu, 3 Sep 2020 17:08:17 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20calcolo=20quantit=C3=A0=20impegnata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ordini/quantita_impegnate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ordini/quantita_impegnate.php b/modules/ordini/quantita_impegnate.php index 6ea27e81d..45f2b9e2b 100644 --- a/modules/ordini/quantita_impegnate.php +++ b/modules/ordini/quantita_impegnate.php @@ -40,6 +40,7 @@ foreach ($articoli as $elenco) { WHERE or_ordini.id != '.prepare($ordine->id).' AND idstatoordine = (SELECT id FROM or_statiordine WHERE descrizione = 'Bozza') AND idtipoordine IN (SELECT id FROM or_tipiordine WHERE dir = 'entrata') + AND idarticolo=".prepare($articolo->id)." GROUP BY idarticolo")['qta']; $qta_impegnata = floatval($qta_impegnata);