set rates via batch update (#1326)
This commit is contained in:
@@ -343,6 +343,15 @@ abstract class TimesheetAbstractController extends AbstractController
|
||||
$timesheet->setExported($dto->isExported());
|
||||
$execute = true;
|
||||
}
|
||||
if (null !== $dto->getHourlyRate()) {
|
||||
$timesheet->setFixedRate(null);
|
||||
$timesheet->setHourlyRate($dto->getHourlyRate());
|
||||
$execute = true;
|
||||
} elseif (null !== $dto->getFixedRate()) {
|
||||
$timesheet->setFixedRate($dto->getFixedRate());
|
||||
$timesheet->setHourlyRate(null);
|
||||
$execute = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($execute) {
|
||||
|
||||
Reference in New Issue
Block a user