topcoder-platform / micro-frontends-taas-admin-app

taas-admin-app for managing taas administrative activities
MIT License
0 stars 5 forks source link

Allow up to 10 "Working Days" #79

Closed maxceem closed 3 years ago

maxceem commented 3 years ago

Background

In TaaS we have members (ResourceBookings) who are assigned to the customer's Jobs for some period of time. This time is divided into weeks (WorkPeriods) and payments to the ResourceBookings (members) is processed weekly per WorkPeriod. For each WorkPeriod we can enter how many days user worked per that week (0 till 5) and process payments for the working days. If ResourceBooking's ends in middle of the week (let's say Wednesday), than during that week we cannot enter more working days than actually fit the week (maximum 3 working days can fit week until Wednesday). This is already implemented, but sometimes ResourceBooking can work like double shift or even on the weekends, so we would like to allow managers to enter up to 10 working days per Work Period even there are no so many real working days in that WorkPeriod.

image

Task

API

sandhiyakavi commented 3 years ago

Verified on Dev Env.

Below scenarios are verified,

  1. Verify Working days can be set up to max of 10 and '+' button is disabled if value is 10.
  2. Verify Working days set more than 5/RB dates then a modal window opens and the contents are correct.
  3. Verify if the current value is already more than maximum of this week, no confirmation modal shown
  4. Verify whether Yes clicked value increased and if No clicked value not increased.
  5. Verify whether dayswrked changed, if the RB date altered has datesset > dayspaid (RB.startdate as well as RB.Enddate)
  6. Verify whether dayswrked not changed, if the RB date altered has datesset < dayspaid (RB.startdate as well as RB.Enddate)
sandhiyakavi commented 3 years ago

Verified on Prod Env. Working as expected.

cc: @nkumar-topcoder