Release 2.44 (#5699)
This commit is contained in:
@@ -17,11 +17,11 @@ final class Constants
|
||||
/**
|
||||
* The current release version
|
||||
*/
|
||||
public const VERSION = '2.43.0';
|
||||
public const VERSION = '2.44.0';
|
||||
/**
|
||||
* The current release: major * 10000 + minor * 100 + patch
|
||||
*/
|
||||
public const VERSION_ID = 24300;
|
||||
public const VERSION_ID = 24400;
|
||||
/**
|
||||
* The software name
|
||||
*/
|
||||
|
||||
@@ -471,7 +471,7 @@ final class SystemConfigurationController extends AbstractController
|
||||
->setType(CustomerTypePatternType::class),
|
||||
(new Configuration('customer.number_format'))
|
||||
->setLabel('customer.number_format')
|
||||
->setOptions(['help' => 'allowed_replacer', 'help_translation_parameters' => ['%replacer%' => '{cc}']])
|
||||
->setOptions(['help' => 'allowed_replacer', 'help_translation_parameters' => ['%replacer%' => '{cc}, {Y}, {y}, {M}, {m}, {D}, {d}, {YY}, {yy}, {MM}, {DD}']])
|
||||
->setRequired(true)
|
||||
->setType(TextType::class)
|
||||
->setTranslationDomain('system-configuration'),
|
||||
@@ -491,7 +491,7 @@ final class SystemConfigurationController extends AbstractController
|
||||
->setTranslationDomain('system-configuration'),
|
||||
(new Configuration('project.number_format'))
|
||||
->setLabel('project.number_format')
|
||||
->setOptions(['help' => 'allowed_replacer', 'help_translation_parameters' => ['%replacer%' => '{pc}']])
|
||||
->setOptions(['help' => 'allowed_replacer', 'help_translation_parameters' => ['%replacer%' => '{pc}, {Y}, {y}, {M}, {m}, {D}, {d}, {YY}, {yy}, {MM}, {DD}']])
|
||||
->setRequired(false)
|
||||
->setType(TextType::class)
|
||||
->setTranslationDomain('system-configuration'),
|
||||
@@ -507,7 +507,7 @@ final class SystemConfigurationController extends AbstractController
|
||||
->setType(ActivityTypePatternType::class),
|
||||
(new Configuration('activity.number_format'))
|
||||
->setLabel('activity.number_format')
|
||||
->setOptions(['help' => 'allowed_replacer', 'help_translation_parameters' => ['%replacer%' => '{ac}']])
|
||||
->setOptions(['help' => 'allowed_replacer', 'help_translation_parameters' => ['%replacer%' => '{ac}, {Y}, {y}, {M}, {m}, {D}, {d}, {YY}, {yy}, {MM}, {DD}']])
|
||||
->setRequired(false)
|
||||
->setType(TextType::class)
|
||||
->setTranslationDomain('system-configuration'),
|
||||
|
||||
@@ -84,7 +84,7 @@ abstract class TimesheetAbstractController extends AbstractController
|
||||
}
|
||||
|
||||
if ($this->configuration->isBreakTimeEnabled()) {
|
||||
$table->addColumn('break', ['class' => 'text-end text-nowrap']);
|
||||
$table->addColumn('break', ['class' => 'text-end text-nowrap', 'orderBy' => false]);
|
||||
}
|
||||
|
||||
$table->addColumn('duration', ['class' => 'text-end text-nowrap']);
|
||||
|
||||
@@ -19,6 +19,9 @@ class ThemeEvent extends Event
|
||||
public const HTML_HEAD = 'app.theme.html_head';
|
||||
public const CONTENT_BEFORE = 'app.theme.content_before';
|
||||
public const CONTENT_START = 'app.theme.content_start';
|
||||
/**
|
||||
* The toolbar is rendered twice for small and large screens.
|
||||
*/
|
||||
public const TOOLBAR = 'app.theme.toolbar';
|
||||
public const CONTENT_END = 'app.theme.content_end';
|
||||
public const CONTENT_AFTER = 'app.theme.content_after';
|
||||
|
||||
@@ -73,12 +73,12 @@ final class RoundingService
|
||||
|
||||
public function roundBegin(Timesheet $record): void
|
||||
{
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if ($record->getBegin() === null) {
|
||||
continue;
|
||||
}
|
||||
$weekday = $record->getBegin()->format('l');
|
||||
if ($record->getBegin() === null) {
|
||||
return;
|
||||
}
|
||||
$weekday = $record->getBegin()->format('l');
|
||||
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if (\in_array(strtolower($weekday), $rounding['days'], true)) {
|
||||
$rounder = $this->getRoundingMode($rounding['mode']);
|
||||
$rounder->roundBegin($record, $rounding['begin']);
|
||||
@@ -88,12 +88,12 @@ final class RoundingService
|
||||
|
||||
public function roundEnd(Timesheet $record): void
|
||||
{
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if ($record->getEnd() === null) {
|
||||
continue;
|
||||
}
|
||||
$weekday = $record->getEnd()->format('l');
|
||||
if ($record->getEnd() === null) {
|
||||
return;
|
||||
}
|
||||
$weekday = $record->getEnd()->format('l');
|
||||
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if (\in_array(strtolower($weekday), $rounding['days'], true)) {
|
||||
$rounder = $this->getRoundingMode($rounding['mode']);
|
||||
$rounder->roundEnd($record, $rounding['end']);
|
||||
@@ -103,12 +103,12 @@ final class RoundingService
|
||||
|
||||
public function roundDuration(Timesheet $record): void
|
||||
{
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if ($record->getEnd() === null) {
|
||||
continue;
|
||||
}
|
||||
$weekday = $record->getEnd()->format('l');
|
||||
if ($record->getEnd() === null) {
|
||||
return;
|
||||
}
|
||||
$weekday = $record->getEnd()->format('l');
|
||||
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if (\in_array(strtolower($weekday), $rounding['days'], true)) {
|
||||
$rounder = $this->getRoundingMode($rounding['mode']);
|
||||
$rounder->roundDuration($record, $rounding['duration']);
|
||||
@@ -118,16 +118,12 @@ final class RoundingService
|
||||
|
||||
public function applyRoundings(Timesheet $record): void
|
||||
{
|
||||
if (null === $record->getEnd()) {
|
||||
if ($record->getEnd() === null) {
|
||||
return;
|
||||
}
|
||||
$weekday = $record->getEnd()->format('l');
|
||||
|
||||
foreach ($this->getRoundingRules() as $rounding) {
|
||||
if ($record->getEnd() === null) {
|
||||
continue;
|
||||
}
|
||||
$weekday = $record->getEnd()->format('l');
|
||||
|
||||
if (\in_array(strtolower($weekday), $rounding['days'], true)) {
|
||||
$rounder = $this->getRoundingMode($rounding['mode']);
|
||||
$rounder->roundBegin($record, $rounding['begin']);
|
||||
|
||||
Reference in New Issue
Block a user