1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-05 20:37:46 +01:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Dasc3er 2021-08-04 16:42:58 +02:00
commit ace439068d

View File

@ -76,6 +76,7 @@ echo '
<tbody>';
$totale_qta = 0;
$totali = [];
foreach ($data['results'] as $r) {
$valore_magazzino = $r['prezzo_acquisto'] * $r['qta_totale'];
@ -91,12 +92,12 @@ foreach ($data['results'] as $r) {
<td class="text-right">'.moneyFormat($valore_magazzino).'</td>
</tr>';
$totale_qta += $r['qta_totale'];
$totali[] = $valore_magazzino;
}
// Totali
$totale_acquisto = sum($totali);
$totale_qta = sum(array_column($rs, 'qta_totale'));
echo '
</tbody>