ProjektObjekteImDetailImporter update and statistic
This commit is contained in:
1 parent
5989140ae5
commit
abba76e56d
14 files changed
+1628
-2741
No files matched your search
@@ -11,6 +11,7 @@ use App\Models\ProjektAllgemeinflaechen;
|
||||
use App\Models\Projekte;
|
||||
use App\Models\ProjektObjekte;
|
||||
use App\Traits\HasBackUrl;
|
||||
use Carbon\Carbon;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\ActionGroup;
|
||||
use Filament\Actions\DeleteAction;
|
||||
@@ -147,7 +148,7 @@ class EditProjekte extends EditRecord
|
||||
->action(function ($record) {
|
||||
if (Konto::where('id', $record['konto_id'])->where('guthaben', '>', 0)->get()) {
|
||||
Konto::where('id', $record['konto_id'])->decrement('guthaben', 1);
|
||||
Projekte::where('id', $record['id'])->update(['bezahlt_am' => \Carbon\Carbon::now()]);
|
||||
Projekte::where('id', $record['id'])->update(['bezahlt_am' => Carbon::now()]);
|
||||
|
||||
$this->record->refresh();
|
||||
|
||||
|
||||
Reference in new issue
Block a user