Skip to content

Commit b593f65

Browse files
committed
fix: aggiunta tariffe tecnici se mancanti
1 parent 4b63872 commit b593f65

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

modules/tipi_intervento/src/Tipo.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
use Common\SimpleModelTrait;
2424
use Illuminate\Database\Eloquent\Model;
2525
use Modules\Anagrafiche\Anagrafica;
26+
use Modules\Preventivi\Preventivo;
27+
use Modules\Interventi\Intervento;
2628
use Traits\RecordTrait;
2729

2830
class Tipo extends Model
@@ -80,6 +82,14 @@ public function setTempoStandardAttribute($value)
8082
$this->attributes['tempo_standard'] = $result;
8183
}
8284

85+
public function save(array $options = [])
86+
{
87+
parent::save($options);
88+
89+
$this->fixTecnici();
90+
}
91+
92+
8393
public function preventivi()
8494
{
8595
return $this->hasMany(Preventivo::class, 'idtipointervento');

0 commit comments

Comments
 (0)