feat : ajout de la gestion des heures chauffeurs
All checks were successful
Auto Tag Develop / tag (push) Successful in 8s
All checks were successful
Auto Tag Develop / tag (push) Successful in 8s
This commit is contained in:
@@ -88,6 +88,9 @@ class Employee
|
||||
#[Groups(['employee:write'])]
|
||||
private ?string $contractComment = null;
|
||||
|
||||
#[Groups(['employee:write'])]
|
||||
private ?bool $isDriverInput = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->createdAt = new DateTimeImmutable();
|
||||
@@ -245,6 +248,24 @@ class Employee
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getIsDriverInput(): ?bool
|
||||
{
|
||||
return $this->isDriverInput;
|
||||
}
|
||||
|
||||
public function setIsDriverInput(?bool $isDriverInput): self
|
||||
{
|
||||
$this->isDriverInput = $isDriverInput;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
#[Groups(['employee:read'])]
|
||||
public function getIsDriver(): bool
|
||||
{
|
||||
return $this->resolveCurrentContractPeriod()?->getIsDriver() ?? false;
|
||||
}
|
||||
|
||||
#[Groups(['employee:read'])]
|
||||
public function getCurrentContractNature(): string
|
||||
{
|
||||
@@ -329,6 +350,7 @@ class Employee
|
||||
comment: $period->getComment(),
|
||||
periodId: $period->getId(),
|
||||
suspensions: $suspensionData,
|
||||
isDriver: $period->getIsDriver(),
|
||||
);
|
||||
},
|
||||
$periods
|
||||
|
||||
Reference in New Issue
Block a user