feat: show due or invalid documents on teamer dashboard
This commit is contained in:
@@ -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