mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 08:56:48 +01:00
Fix minore registrazione contabile
This commit is contained in:
parent
37c6cd28c5
commit
d35f534b49
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user