Fix calcolo quantità impegnata
This commit is contained in:
parent
a67064e459
commit
ea4043ccd4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue