zuohui48 / pe

0 stars 0 forks source link

Incorrect income shown #6

Open zuohui48 opened 1 year ago

zuohui48 commented 1 year ago

Screenshot 2023-04-14 at 3.08.37 PM.png

The pay rate of david li is 550 and he only attended 3 hours of sessions in total. But the income analytics shows way more than the amount that should have be earned which is 1650

nus-pe-script commented 1 year ago

Team's Response

The calculation is actually correct. If you see session #3, the training date input is from 14th May 2023 10am to 15th May 2023 11am, which is a total of 25 hours. Adding that to session #1 1 hr session, that brings it to a total of 26 hours. 26 * 550 = $14300, which is the amount reflected in the UI.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: Hi, I think it is not intuitive to show that the amount for this week is higher than the amount for this month, as the current week is part of the current month. Hence the amount that is displayed under "This Month" should be greater than or equals to the amount shown in "This Week". Also, we are in the month of April, but the last session "Haall" that David Li attended is in May, the "This Week" tab wrongly displays the income as $14300 instead of $550.