inst-support-eng / panda-pto

Panda-PTO is a in house solution to HR staffing needs
3 stars 0 forks source link

ten_hour_shift calculation is funky #186

Closed BlinkVonDoom closed 5 years ago

BlinkVonDoom commented 5 years ago

ten_hour_shift logic for users imports is borked

BlinkVonDoom commented 5 years ago
        shift_difference = (end_time.to_i - start_time.to_i).abs
        24 - shift_difference == 8 ? agent.ten_hour_shift = false : agent.ten_hour_shift = true
BlinkVonDoom commented 5 years ago

main issue resolved. waiting to hear how to handle part_time employees that work 4 hour shifts 4 days a week

BlinkVonDoom commented 5 years ago

fix : https://github.com/inst-support-eng/panda-pto/commit/84f96b0fe0b1c4087dad8032e4885da01dbd2e86#diff-4676c008b11a5480d73d4a6de01e45b9R161