new system-config to prevent overlapping records (#1720)
This commit is contained in:
@@ -30,6 +30,7 @@ class Timesheet extends Constraint
|
||||
public const START_DISALLOWED = 'kimai-timesheet-90';
|
||||
public const PROJECT_NOT_STARTED = 'kimai-timesheet-91';
|
||||
public const PROJECT_ALREADY_ENDED = 'kimai-timesheet-92';
|
||||
public const RECORD_OVERLAPPING = 'kimai-timesheet-93';
|
||||
|
||||
protected static $errorNames = [
|
||||
self::MISSING_BEGIN_ERROR => 'You must submit a begin date.',
|
||||
@@ -44,6 +45,7 @@ class Timesheet extends Constraint
|
||||
self::START_DISALLOWED => 'You are not allowed to start this timesheet record.',
|
||||
self::PROJECT_NOT_STARTED => 'The project has not started at that time.',
|
||||
self::PROJECT_ALREADY_ENDED => 'The project is finished at that time.',
|
||||
self::RECORD_OVERLAPPING => 'You already have an entry for this time.',
|
||||
];
|
||||
|
||||
public $message = 'This timesheet has invalid settings.';
|
||||
|
||||
Reference in New Issue
Block a user