feat: show due or invalid documents on teamer dashboard

This commit is contained in:
Björn Fromme
2024-01-31 18:47:40 +01:00
parent 893be8a5eb
commit 258b8663dc
4 changed files with 37 additions and 24 deletions
+9
View File
@@ -206,6 +206,15 @@ class Disposition implements BlameableEntityInterface, TimestampableEntityInterf
return $period->isStarted();
}
public function isContractRejected(): bool
{
if (null === $contractDocument = $this->getDocumentByType(Upload::TYPE_CONTRACT)) {
return false;
}
return $contractDocument->isRejected();
}
public function isInvoiceDue(): bool
{
if (null !== $this->getDocumentByType(Upload::TYPE_INVOICE)) {