Add support for requesting shifts
This commit is contained in:
@@ -74,7 +74,11 @@ tables.each((n, table) => {
|
||||
whole_weekends_worked = whole_weekends_worked - shifts.count(el) / 3
|
||||
}
|
||||
// 0.5 for twilights
|
||||
if(el.includes("twilight")) { days_lost = days_lost + shifts.count(el) / 2 }
|
||||
if(el.includes("twilight")) {
|
||||
twilight_days_lost = shifts.count(el) / 2
|
||||
days_lost = days_lost + twilight_days_lost
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user