Fixes for 1.12 (#4655)
* fix missing locales * bump composer packages * changed translations * assert timezone on customer * include user accountNumber in excel export * improve next customer number calculation * fix z-index of contextmenu / action dropdown
This commit is contained in:
@@ -100,7 +100,7 @@ final class WorkingTimeService
|
||||
return $year->getMonth($monthDate);
|
||||
}
|
||||
|
||||
public function approveMonth(User $user, Month $month, \DateTimeInterface $approvalDate, User $approver): void
|
||||
public function approveMonth(User $user, Month $month, \DateTimeInterface $approvalDate, User $approvedBy): void
|
||||
{
|
||||
foreach ($month->getDays() as $day) {
|
||||
$workingTime = $day->getWorkingTime();
|
||||
@@ -116,7 +116,7 @@ final class WorkingTimeService
|
||||
continue;
|
||||
}
|
||||
|
||||
$workingTime->setApprovedBy($approver);
|
||||
$workingTime->setApprovedBy($approvedBy);
|
||||
// FIXME see calling method
|
||||
$workingTime->setApprovedAt(\DateTimeImmutable::createFromInterface($approvalDate));
|
||||
$this->workingTimeRepository->scheduleWorkingTimeUpdate($workingTime);
|
||||
@@ -124,7 +124,7 @@ final class WorkingTimeService
|
||||
|
||||
$this->workingTimeRepository->persistScheduledWorkingTimes();
|
||||
|
||||
$this->eventDispatcher->dispatch(new WorkingTimeApproveMonthEvent($user, $month, $approvalDate, $approver));
|
||||
$this->eventDispatcher->dispatch(new WorkingTimeApproveMonthEvent($user, $month, $approvalDate, $approvedBy));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user