mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-27 06:04:54 +01:00
Fix #1316
This commit is contained in:
parent
c678362e5b
commit
d5436afaa3
@ -358,12 +358,12 @@ class Fattura extends Document
|
||||
*/
|
||||
public function getRitenutaAccontoAttribute()
|
||||
{
|
||||
return $this->calcola('ritenuta_acconto');
|
||||
return $this->getRigheContabili()->sum('ritenuta_acconto');
|
||||
}
|
||||
|
||||
public function getTotaleRitenutaContributiAttribute()
|
||||
{
|
||||
return $this->calcola('ritenuta_contributi');
|
||||
return $this->getRigheContabili()->sum('ritenuta_contributi');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user