Skip to content

Commit 9e7a07f

Browse files
committed
fix: calcolo ore totali contratto che non venivano sommate
1 parent 58f8b92 commit 9e7a07f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/consuntivo/edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,10 @@ function getQueryInterventiDisponibili($idanagrafica)
347347

348348
$budget = $documento->totale_imponibile;
349349
$righe = $documento->getRighe();
350+
$totale_ore_contratto = 0;
350351
foreach ($righe as $riga) {
351352
if ($riga->um == 'ore') {
352-
$totale_ore_contratto = $riga->qta;
353+
$totale_ore_contratto += $riga->qta;
353354
}
354355
}
355356

0 commit comments

Comments
 (0)