mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix calcolo costi intervento
This commit is contained in:
parent
4ee4d881bd
commit
b8b19b61d3
@ -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
|
* @return float
|
||||||
*/
|
*/
|
||||||
public function getSpesaAttribute()
|
public function getSpesaAttribute()
|
||||||
{
|
{
|
||||||
return $this->costo_manodopera;
|
return $this->costo_manodopera + $this->costo_viaggio + $this->costo_diritto_chiamata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user