1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-27 08:47:39 +01:00

Fix calcolo costi intervento

This commit is contained in:
MatteoPistorello 2022-02-03 10:12:39 +01:00
parent 4ee4d881bd
commit b8b19b61d3

View File

@ -365,13 +365,13 @@ class Sessione extends Model
}
/**
* Restituisce la spesa (costo_unitario * qta) relativa all'elemento.
* Restituisce la spesa relativa all'elemento.
*
* @return float
*/
public function getSpesaAttribute()
{
return $this->costo_manodopera;
return $this->costo_manodopera + $this->costo_viaggio + $this->costo_diritto_chiamata;
}
/**