feat: show due or invalid documents on teamer dashboard
This commit is contained in:
1 parent
893be8a5eb
commit
258b8663dc
4 files changed
+37
-24
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user