This commit is contained in:
Beppe 2024-09-27 10:02:34 +02:00
commit c24268f82c
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class Mastrino extends Model
}
foreach ($scadenze as $scadenza) {
$totale_da_distribuire += ($movimento['totale'] != 0 ? Movimento::where('id_scadenza', '=', $scadenza->id)
$totale_da_distribuire = ($movimento['totale'] != 0 ? Movimento::where('id_scadenza', '=', $scadenza)
->where('totale', '>', 0)
->sum('totale') : 0);
}