Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

pendingRemovalDaysOffSlots#49

Open
SemProvoost wants to merge 1 commit intomasterfrom
update-day-off-tooltip-for-pending-removal
Open

pendingRemovalDaysOffSlots#49
SemProvoost wants to merge 1 commit intomasterfrom
update-day-off-tooltip-for-pending-removal

Conversation

@SemProvoost
Copy link

@SemProvoost SemProvoost commented Apr 14, 2020

on release: i18n key DAYS_OFF_PENDING_REMOVAL should be added (in ESS)

image

const pendingRemovalTimeOffTotal = this.pendingRemovalDaysOffSlots.reduce((timeOffMinutes, slot) => timeOffMinutes + slot.duration_minutes, 0)
const workTimeSchedule = this.weeklySchedule[this.dateStr] || 0
const workTime = workTimeSchedule - timeOffTotal
const workTime = workTimeSchedule - timeOffTotal - pendingRemovalTimeOffTotal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this correct?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep. timeOffTotal excludes pendingRemovalTimeOffTotal. They should both be subtracted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants