Skip to content

Commit

Permalink
TASK-391 fixed calculation of worker norm when added during the month…
Browse files Browse the repository at this point in the history
… with parttime contract. (#295)
  • Loading branch information
kopcion authored Mar 21, 2021
1 parent 7e118f4 commit 7f2c0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/worker-hours-info.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class WorkerHourInfo {
},
0
);
const workerHourNorm = requiredHours * workerNorm - freeHours;
const workerHourNorm = (requiredHours - freeHours) * workerNorm;
const workerActualWorkTime = actualShiftsFromCurrentMonth.reduce(
(acc, shift) => acc + ShiftHelper.shiftCodeToWorkTime(SHIFTS[shift!]),
0
Expand Down

0 comments on commit 7f2c0d3

Please sign in to comment.