Fix plugin consuntivo

This commit is contained in:
Pek5892 2023-12-11 11:57:17 +01:00
parent 02c988db3f
commit e04785d530
1 changed files with 1 additions and 0 deletions

View File

@ -400,6 +400,7 @@ if ($diff > 0) {
$margine = $materiale['ricavo'] - $materiale['costo'];
$margine_prc = (int) (1 - ($materiale['costo'] / ($materiale['ricavo'] ? $materiale['ricavo'] : 1))) * 100;
$ricarico_prc = ($materiale['ricavo'] && $materiale['costo']) ? (int) ((($materiale['ricavo'] / ($materiale['costo'] ? $materiale['costo'] : 1)) - 1) * 100) : 100;
echo'
<tr>
<td>'.$key.'</td>
<td class="text-center">'.$materiale['qta'].'</td>