feat: assignments with disabled formalities
addresses #869dnvm8c
This commit is contained in:
1 parent
5979988dcc
commit
c33c1b6bf0
20 files changed
+720
-67
No files matched your search
@@ -57,6 +57,13 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
#[ORM\Column]
|
||||
private ?bool $showAvailableDispositions = false;
|
||||
|
||||
/**
|
||||
* Ends the process for a placed teamer right after the disposition is created: no contract,
|
||||
* no invoice, no feedback. See Disposition::isSkipFormalities() for the per-placement view.
|
||||
*/
|
||||
#[ORM\Column]
|
||||
private bool $skipFormalities = false;
|
||||
|
||||
#[ORM\Column(type: Types::DATE_IMMUTABLE, nullable: true)]
|
||||
private ?\DateTimeImmutable $dateFrom = null;
|
||||
|
||||
@@ -125,6 +132,7 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
->setJobProfile($assignment->getJobProfile())
|
||||
->setAvailableDispositions($assignment->getAvailableDispositions())
|
||||
->setShowAvailableDispositions($assignment->isShowAvailableDispositions())
|
||||
->setSkipFormalities($assignment->isSkipFormalities())
|
||||
->setDateFrom($assignment->getDateFrom())
|
||||
->setDateTo($assignment->getDateTo())
|
||||
->setPickupDate($assignment->getPickupDate())
|
||||
@@ -246,6 +254,18 @@ class Assignment implements BlameableEntityInterface, TimestampableEntityInterfa
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isSkipFormalities(): bool
|
||||
{
|
||||
return $this->skipFormalities;
|
||||
}
|
||||
|
||||
public function setSkipFormalities(bool $skipFormalities): static
|
||||
{
|
||||
$this->skipFormalities = $skipFormalities;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDateFrom(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->dateFrom;
|
||||
|
||||
Reference in new issue
Block a user