Skip to content

Commit 61bcd8b

Browse files
committed
fix: caricamento plugin consuntivo nel caso di documento eliminato
1 parent f3d666b commit 61bcd8b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

plugins/consuntivo/edit.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
$text = tr('Ordine');
4848
}
4949

50+
if (empty($documento)) {
51+
return;
52+
}
53+
5054
$interventi = Intervento::where($id_documento, $id_record)->get();
5155
$totale_ore_completate = 0;
5256

@@ -247,7 +251,6 @@
247251
</table>';
248252
}
249253

250-
// Bilancio del documento
251254
$budget = $documento->totale_imponibile;
252255
$righe = $documento->getRighe();
253256
foreach ($righe as $riga) {

0 commit comments

Comments
 (0)