This commit is contained in:
Pek5892 2023-06-15 10:31:26 +02:00
parent c678362e5b
commit d5436afaa3
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}
/**