HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Bug #759900
open[OPC - Cost area] Economy parking type cost calculations are wrong in general
0%
Description
Cost calculations are wrong in general. Time period in the range between 1 m – 6 h59 m is calculated as $ 0. Time period in the range between 7 h – 1 d 6 h 59 m is calculated as $ 9. After this next 24 h period starts till 5d 23h 59m.Time period in the range between 6d 0h 0m - 6d 7h 0m is calculated as $ 0. Time period > 6d 7h 0m is calculated as $ 9 for
Steps to reproduce:
1) Open http://grr.org/parking-calculator.php
2) Select "Economy" type from “Choose a Lot” drop-down list
3) Enter different time periods in the ranges described above
4) Verify Cost caLculation
Expected result:
$ 2 for hour, $9 price per day, $ 54 price per day. When Economy Parking is selected, user should not be able to select time period longer than 7 days. If this happens, there should be an error displayed “You are not allowed to park for such long period here” colored in red
Actual result:
Time period in the range between 1 m – 6 h59 m is calculated as $ 0.
Time period in the range between 7 h – 1 d 6 h 59 m is calculated as $ 9. After this next 24 h period starts till 5d 23h 59m
Time period in the range between 6d 0h 0m - 6d 7h 0m is calculated as $ 0
Time period > 6d 7h 0m is calculated as $ 9 for
Price per hour is not calculated.
Price per day is calculated for 24h (1 day) periods as $ 9 per day.
No limit to 7 days on this parking type.
Test Data:
Tested on Google Chrome browser
Pictures imported
Files
No data to display