FontysVenlo / prj2-airline-information-system

Example for the Airline Information System project
MIT License
9 stars 10 forks source link

Discount: Price #16

Closed Tozzettini closed 1 year ago

Tozzettini commented 1 year ago

A price needs to be added to make the code more complex and usable. We also want to manipulate data in the business logic with the price.

First draft:

  1. Establish a price on flights ( For the first iteration it can be asserted randomly )
  2. Add a way to set the amount of discount ( for now the dynamic discount is only 10% in the Future the value of the discount can be interchangeable)
  3. Display discounted price and initial price
  4. [...]
Tozzettini commented 1 year ago

Comment:

Does this count as manipulating data in the business logic? what parts of this will be thrown inside the business logic?

Problem: not a lot of BUI logic tests, only for the calculation of the correct price.

Tozzettini commented 1 year ago

Comment:

Price calculation is something that has to be done by Booking/Create Flight

Tozzettini commented 1 year ago

Idea dump:

The idea is to make a small pop up inside the original pop up, one for dynamic and one for static discount , in this pop up we can find a description that says Current discount value which displays the current percentage of the discount and beneath it a text input that allows us to manually put in how much discount we want, going from 0 to 100 percent, the sum of both dynamic and static discount can not be more than 100 percent.

on the initial pop up now it will no longer display true or false in the discount values but instead, it will display the actual percentages.

the static discount button should be separated, what I wrote previously only works for dynamic, static should be imposed beforehand by the user.

Tozzettini commented 1 year ago

Add a congradulations when a user saves a Discount