Skip to content

Commit

Permalink
Fix minore registrazione contabile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Sep 27, 2024
1 parent 37c6cd2 commit d35f534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/primanota/src/Mastrino.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function correggiScadenza(Movimento $movimento, $scadenze = null, $id_
}

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);
}
Expand Down

0 comments on commit d35f534

Please sign in to comment.