on-site color change

This commit is contained in:
2025-10-31 16:52:03 +01:00
parent ee32d8600b
commit 87c66c6485

View File

@@ -392,7 +392,7 @@ try {
# ---| ON-SITE SHIFT CHECK |--- # ---| ON-SITE SHIFT CHECK |---
if($email -in $os_emails) { if($email -in $os_emails) {
if((Invoke-HasShiftorTimeOff -UID $userId -shifts $shifts_today -timeoff $timeoff_today -mail $email) -eq $false) { if((Invoke-HasShiftorTimeOff -UID $userId -shifts $shifts_today -timeoff $timeoff_today -mail $email) -eq $false) {
$newshift = Set-Shift -userId $userId -groupID $group.id -shiftName "On-site" -StartDate $dateStart -EndDate $dateEnd -color "gray" -teamID $team.id -mail $email $newshift = Set-Shift -userId $userId -groupID $group.id -shiftName "On-site" -StartDate $dateStart -EndDate $dateEnd -color "white" -teamID $team.id -mail $email
$allshifts += [Object[]] $newshift $allshifts += [Object[]] $newshift
continue continue
} }