add an icon when the file is opened / closed in result list, and in person rendering macro

This commit is contained in:
2019-07-02 13:18:34 +02:00
parent 2aecaae749
commit 0ccc998e52
5 changed files with 37 additions and 6 deletions

View File

@@ -128,7 +128,12 @@ class AccompanyingPeriod
*
* @return boolean
*/
public function isOpen() {
public function isOpen(): bool
{
if ($this->getOpeningDate() > new \DateTime('now')) {
return false;
}
if ($this->getClosingDate() === null) {
return true;
} else {