Operation processes on invoices
This commit is contained in:
@@ -29,13 +29,13 @@ class CostUnit extends InstancedModel
|
||||
'archived',
|
||||
];
|
||||
|
||||
public function tresurers() : BelongsToMany{
|
||||
public function treasurers() : BelongsToMany{
|
||||
return $this->belongsToMany(User::class, 'cost_unit_treasurers', 'cost_unit_id', 'user_id')
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
public function resetTreasurers() {
|
||||
$this->tresurers()->detach();
|
||||
$this->treasurers()->detach();
|
||||
$this->save();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user