Fix calcolo quantità impegnata

This commit is contained in:
loviuz 2020-09-03 17:08:17 +02:00
parent a67064e459
commit ea4043ccd4
1 changed files with 1 additions and 0 deletions

View File

@ -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);