feat : ajout des demi-journées d'absence dans le calendrier et l'export pdf
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
2026-02-10 16:11:09 +01:00
parent 4cf00e6ef3
commit 2a8c874985
11 changed files with 404 additions and 46 deletions

View File

@@ -50,10 +50,18 @@ class Absence
#[Groups(['absence:read'])]
private DateTimeInterface $startDate;
#[ORM\Column(type: 'string', length: 2, options: ['default' => 'AM'])]
#[Groups(['absence:read'])]
private string $startHalf = 'AM';
#[ORM\Column(type: 'date')]
#[Groups(['absence:read'])]
private DateTimeInterface $endDate;
#[ORM\Column(type: 'string', length: 2, options: ['default' => 'PM'])]
#[Groups(['absence:read'])]
private string $endHalf = 'PM';
#[ORM\Column(type: 'text', nullable: true)]
#[Groups(['absence:read'])]
private ?string $comment = null;
@@ -111,6 +119,30 @@ class Absence
return $this;
}
public function getStartHalf(): string
{
return $this->startHalf;
}
public function setStartHalf(string $startHalf): self
{
$this->startHalf = $startHalf;
return $this;
}
public function getEndHalf(): string
{
return $this->endHalf;
}
public function setEndHalf(string $endHalf): self
{
$this->endHalf = $endHalf;
return $this;
}
public function getComment(): ?string
{
return $this->comment;