mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
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).'
|
WHERE or_ordini.id != '.prepare($ordine->id).'
|
||||||
AND idstatoordine = (SELECT id FROM or_statiordine WHERE descrizione = 'Bozza')
|
AND idstatoordine = (SELECT id FROM or_statiordine WHERE descrizione = 'Bozza')
|
||||||
AND idtipoordine IN (SELECT id FROM or_tipiordine WHERE dir = 'entrata')
|
AND idtipoordine IN (SELECT id FROM or_tipiordine WHERE dir = 'entrata')
|
||||||
|
AND idarticolo=".prepare($articolo->id)."
|
||||||
GROUP BY idarticolo")['qta'];
|
GROUP BY idarticolo")['qta'];
|
||||||
$qta_impegnata = floatval($qta_impegnata);
|
$qta_impegnata = floatval($qta_impegnata);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user