Fix remaining 1.0 deduction references to 2.0 based on code review feedback
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
This commit is contained in:
parent
db6e95f45c
commit
af4473f4b9
6 changed files with 19 additions and 19 deletions
|
|
@ -78,8 +78,8 @@ Implements NRW Variante 2 (streng) rules:
|
|||
#### Unit Tests (PayrollCalculatorTest.kt)
|
||||
Comprehensive test coverage including:
|
||||
1. **Under threshold test**: 1.75 WE + 1.0 WT → WE payout 0€, WT payout 250€
|
||||
2. **Exactly at threshold test**: 2.0 WE → WE payout 450€ (1.0 unit after deduction)
|
||||
3. **Over threshold test**: 3.5 WE → WE payout 1125€ (2.5 units after deduction)
|
||||
2. **Exactly at threshold test**: 2.0 WE → WE payout 0€ (0.0 units after 2.0 deduction)
|
||||
3. **Over threshold test**: 3.5 WE → WE payout 675€ (1.5 units after 2.0 deduction)
|
||||
4. **Friday deduction priority test**: Verifies deduction comes from Friday first
|
||||
5. **Multiple employees test**: Separate calculations per employee
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import kotlin.math.min
|
|||
* - WT-Tag (Weekday): All other days
|
||||
* - WT compensation: 250€ per unit (only if threshold reached)
|
||||
* - WE compensation: Only paid if monthly total >= 2.0 WE units (threshold)
|
||||
* - If threshold reached: 450€ per WE unit, then deduct exactly 1.0 WE unit
|
||||
* - If threshold reached: 450€ per WE unit, then deduct exactly 2.0 WE units
|
||||
* - Deduction priority: Friday first, then other WE days
|
||||
* - Below threshold: 0€ for all shifts (neither WT nor WE)
|
||||
*/
|
||||
|
|
|
|||
Reference in a new issue