Operation processes on invoices

This commit is contained in:
th.guenther committed 2026-02-13 00:11:51 +01:00
1 parent 882752472e
commit fd403f8520
44 files changed
+1635 -42

No files matched your search

+2 -2
View File
@@ -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();
}