explore-siargao / es-main

0 stars 0 forks source link

[Story] Create get unit calendar view by category and date range #474

Open ramil25 opened 2 days ago

ramil25 commented 2 days ago
  1. req params will be propertyId and category and date range
  2. get property by id with populated units
  3. filter the populated units by category
  4. agregate reservation to units to make array of reservation in every single unit.
  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