Arun9739/Paryatana

Give error for irrelevant date for hotel and car rental

Closed this issue · 1 comments

It is processing the request even if the dates are in following format

  • check-in date > check-out date
  • check-in date < current date
  • check-out date < current date

same pattern for car rental

Solution is to check the date to follow these condition then only process

  • check-in date <= check-out date
  • check-in date >= current date
  • check-out date >= current date

otherwise show alert box

Screenshots

image

@sidd6p Go ahead
Plz star the repo 🤩 to show your support.