Project

Profile

Help

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

Added by Pavlin Chapkanov over 6 years ago.

Status:
New
Priority:
Immediate
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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

1m.png (190 KB) 1m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
6h59m.png (133 KB) 6h59m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
7h0m.png (114 KB) 7h0m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
5d7h0m.png (190 KB) 5d7h0m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
5d23h59m.png (114 KB) 5d23h59m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
6d0h0m.png (112 KB) 6d0h0m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
6d6h59m.png (112 KB) 6d6h59m.png Pavlin Chapkanov, 2018-06-14 12:41 PM
6d7h0m.png (113 KB) 6d7h0m.png Pavlin Chapkanov, 2018-06-14 12:41 PM

No data to display

Also available in: Atom PDF