lp#
1016102: Solve the Problem of the UI allowing unreasonable dates from the user
I added a date limiter in the checkout.js file, that prevents the user from making unreasonable dates.
Signed-off-by: Zavier Banks <zbanks@catalyte.io>
lp#
1016102: due date fields allow non-sane due dates
I added in a conditional that checks if the date is valid, and not unreasonable. Additionally,
I added a YAOUS that gives the amount of years maximum, you can check out a book. The code can be changed to
be more specific, if necessary.
Signed-off-by: Zavier Banks <zbanks@catalyte.io>
lp#
1016102 due date fields allow non-sane due dates
I reconfigured the way I found and implemented the maximum due date. In the initialization of the
checkout.js document, I added a way to get the maximum date from the database, and add it to the current date.
In the t_checkout.tt2 file, I added a max_date to the date input as well.
Signed-off-by: Zavier Banks <zbanks@catalyte.io>