explore-siargao / es-main

0 stars 0 forks source link

[Story] Create get rental calendar view by category and date range #475

Open ramil25 opened 3 days ago

ramil25 commented 3 days ago
  1. req params will be hostId and category and date range
  2. get rental by host id and by category
  3. filter the rentals by category
  4. agregate reservation to rentals to make array of reservation in every single rental.
  5. map the output data
  6. produce arrays of each items base from qty
  7. in each item produce arrays of reservations and sort it by date
  8. If dates are overlap make sure that the data will be on next qty data but if no overlap in date range is still in same row of data

https://github.com/explore-siargao/es-main/blob/403-property-type/apps/web/module/Hosting/Reservations/Calendar/SampleData.json