validation for future and negative times (#512)

This commit is contained in:
Kevin Papst
2019-01-21 01:51:57 +01:00
committed by GitHub
parent 5b1ec1eb8f
commit 5539f68a54
6 changed files with 44 additions and 6 deletions

View File

@@ -38,6 +38,7 @@ class RateCalculator implements CalculatorInterface
public function calculate(Timesheet $record)
{
if (null === $record->getEnd()) {
$record->setRate(0);
return;
}