feat(worker_calendar): add restrictions to add absence and to add hours recorded #812

Merged
carlosjr merged 4 commits from 3275-worker_calendar into dev 2021-11-30 13:14:22 +00:00
Contributor
No description provided.
vicent added the
CR / Tests passed
label 2021-11-30 08:29:30 +00:00
vicent added 1 commit 2021-11-30 08:29:32 +00:00
vicent added 1 commit 2021-11-30 11:31:22 +00:00
gitea/salix/pipeline/head This commit looks good Details
21bd625b3b
add exceprion to half day absence
carlosjr added 1 commit 2021-11-30 11:41:07 +00:00
gitea/salix/pipeline/head This commit looks good Details
d760eba446
Merge branch 'dev' into 3275-worker_calendar
carlosjr approved these changes 2021-11-30 11:41:22 +00:00
carlosjr left a comment
Contributor

LGTM

LGTM
carlosjr requested changes 2021-11-30 11:42:56 +00:00
@ -51,0 +59,4 @@
});
if (absence) {
const absenceType = await models.AbsenceType.findById(absence.dayOffTypeFk, null, myOptions);
const isNotHalfAbsence = absenceType.id != 6 && absenceType.id != 15 && absenceType.id != 21;
Contributor

try finding types by code instead of id usage.

try finding types by code instead of id usage.
vicent marked this conversation as resolved
carlosjr removed the
CR / Tests passed
label 2021-11-30 11:43:16 +00:00
vicent added 1 commit 2021-11-30 12:57:45 +00:00
gitea/salix/pipeline/head This commit looks good Details
238577ec8f
refactor: change ids by codes and add fixtures
vicent added the
CR / Tests passed
label 2021-11-30 13:00:34 +00:00
carlosjr approved these changes 2021-11-30 13:14:03 +00:00
carlosjr left a comment
Contributor

LGTM

LGTM
carlosjr merged commit cfdef6d090 into dev 2021-11-30 13:14:22 +00:00
carlosjr deleted branch 3275-worker_calendar 2021-11-30 13:14:29 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#812
No description provided.