Change weekend deduction from 1.0 to 2.0 units
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
This commit is contained in:
parent
86cd0ae4a7
commit
d6372fe2e2
11 changed files with 32 additions and 32 deletions
|
|
@ -108,8 +108,8 @@ class BonusCalculator {
|
|||
let totalDeduction = 0;
|
||||
|
||||
if (thresholdReached) {
|
||||
// Deduct 1.0 qualifying day with Friday priority
|
||||
totalDeduction = 1.0;
|
||||
// Deduct 2.0 qualifying days with Friday priority
|
||||
totalDeduction = 2.0;
|
||||
|
||||
// First deduct from Friday
|
||||
deductionFromFriday = Math.min(totalDeduction, qualifyingDaysFriday);
|
||||
|
|
|
|||
Reference in a new issue