Kanban / timesheet update

This commit is contained in:
2026-11-30 06:56:14 +02:00
parent 6332ff0fa9
commit a4dbe8ce09
46 changed files with 8091 additions and 331 deletions
@@ -4,6 +4,7 @@ namespace App\Modules\TimeTracking\Infrastructure\Persistence\Repositories;
use App\Modules\TimeTracking\Domain\Contracts\TimeEntryRepository;
use App\Modules\TimeTracking\Domain\Entities\TimeEntry;
use App\Modules\TimeTracking\Domain\Enums\EntryBillingModel;
use App\Modules\TimeTracking\Domain\ValueObjects\WorkedHours;
use App\Modules\TimeTracking\Infrastructure\Persistence\Eloquent\TimeEntryModel;
use DateTimeImmutable;
@@ -40,6 +41,8 @@ class EloquentTimeEntryRepository implements TimeEntryRepository
'worked_on' => $entry->workedOn()->format('Y-m-d'),
'hours' => $entry->hours()->decimal(),
'note' => $entry->note(),
'billing_model' => $entry->billingModel()?->value,
'internal_comment' => $entry->internalComment(),
'approved_by' => $entry->approvedBy(),
'approved_at' => $entry->approvedAt()?->format('Y-m-d H:i:s'),
'billing_export_id' => $entry->billingExportId(),
@@ -102,6 +105,8 @@ class EloquentTimeEntryRepository implements TimeEntryRepository
$model->approved_by,
$model->approved_at === null ? null : DateTimeImmutable::createFromInterface($model->approved_at),
$model->billing_export_id,
$model->billing_model === null ? null : EntryBillingModel::tryFrom($model->billing_model),
$model->internal_comment,
);
}
}