refs #6882 absence #2271
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2271
Loading…
Reference in New Issue
No description provided.
Delete Branch "6682-notHolidays"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: refs #6682 absenceto refs #6682 absencerefs #6682 absenceto refs #6882 absence@ -0,0 +1,9 @@
-- Place your SQL code here
ALTER TABLE vn.absenceType ADD isFestive BOOL DEFAULT 1 NOT NULL COMMENT 'Para marcar un tipo de absence';
No me acaba el nom
@ -0,0 +3,4 @@
UPDATE vn.absenceType
SET isFestive=0
WHERE id=1;
ficant el code se veu mes visual
@ -99,0 +101,4 @@
where: {id: args.businessFk}
},);
const [holiday] = await models.CalendarHoliday.find({
es lo mateix q fer
const holiday = ... .findOne
no?@ -99,0 +110,4 @@
if (holiday && isFestive)
throw new UserError(`Cannot add holidays on this day`);
if ((isHalfHoliday && hasHalfHoliday) && isFestive)
El error este el posaria de lo primer (aixina no cal fer peticions) i sobra el isFestive
Y hacer un test basico probandolo
@ -99,0 +109,4 @@
},);
if (holiday && isFestive)
throw new UserError(`Cannot add holidays on this day`);
if (isHalfHoliday && (hasHalfHoliday || isFestive))