SENG3160-2018 / flightpub

0 stars 1 forks source link

Confirmation email not including flight or price data #8

Closed b8ne closed 6 years ago

b8ne commented 6 years ago

Describe the bug Confirmation email is sent and recieved however the email does not contain any flight purchase data.

To Reproduce Steps to reproduce the behavior:

  1. Select Business user.
  2. Complete form with 'Atlanta' to 'JFK', 'Business Class', 'Premium Tickets', '12/10/2018'.
  3. Add flight to cart.
  4. Complete payment.
  5. Fill in name and email and submit form.
  6. View received email in email client of choice.
  7. See flight and price details are incorrect.

Expected behavior Confirmation email should match flights purchased, including multi leg flights.

Screenshots screen shot 2018-10-12 at 1 31 19 pm

Additional context As this has passed previously, it's assumed that the bug lies around the case of multiple flights purchased, or if a single flight ticket contains multiple legs.

ebbanat commented 6 years ago

The issue was that the cart (containing the flights) was being cleared before the email was generated.

I also commented out the code where prices are retrieved for the flights as it wouldn't allow me to test this area.

screenshot from 2018-10-18 09-53-06

Email displaying that receipts are being generated with the cart.