Fix deduction value from 2.0 to 1.0 across all files for consistency
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
This commit is contained in:
parent
89862e918c
commit
a2cc8340ee
12 changed files with 51 additions and 50 deletions
|
|
@ -108,8 +108,8 @@ class BonusCalculator {
|
|||
let totalDeduction = 0;
|
||||
|
||||
if (thresholdReached) {
|
||||
// Deduct 2.0 qualifying days with Friday priority
|
||||
totalDeduction = 2.0;
|
||||
// Deduct 1.0 qualifying day with Friday priority
|
||||
totalDeduction = 1.0;
|
||||
|
||||
// First deduct from Friday
|
||||
deductionFromFriday = Math.min(totalDeduction, qualifyingDaysFriday);
|
||||
|
|
|
|||
Reference in a new issue