code improvements (#1423)

* removed unused mapping information
* added support for further field types
* fixed changing date objects for begin and end
* added more project fields as invoice variables
* theme update and asset rebuild
This commit is contained in:
Kevin Papst
2020-01-31 17:07:14 +01:00
committed by GitHub
parent 9e2fccb105
commit 3ff46e06c0
53 changed files with 1964 additions and 1634 deletions

View File

@@ -234,7 +234,9 @@ class TimesheetFixtures extends Fixture implements DependentFixtureInterface
->setDuration($duration);
} else {
// running entries should be short
$entry->getBegin()->setTimestamp(time())->modify('- ' . rand(10, self::TIMERANGE_RUNNING) . ' minutes');
$newBegin = clone $entry->getBegin();
$newBegin->setTimestamp(time())->modify('- ' . rand(10, self::TIMERANGE_RUNNING) . ' minutes');
$entry->setBegin($newBegin);
}
return $entry;