feat: SW-1588 Optimized as per review comments

This commit is contained in:
Hrishikesh Vaipurkar
2025-02-20 10:34:55 +01:00
parent fef31237c8
commit 71eac4e8ba
5 changed files with 140 additions and 125 deletions

View File

@@ -44,7 +44,7 @@ export const roomConfigurationSchema = z
return product
}
// Return rate even if single when special rates
// Return rate even if single when booking code rate which can be any one of other rate types
if (product.productType.public.rateType !== RateTypeEnum.Regular) {
return product
}
@@ -73,7 +73,8 @@ export const roomConfigurationSchema = z
/**
* When all products miss at least one rateCode (member or public), we change the status to NotAvailable
* since we cannot as of now (31 january) guarantee the flow with missing rateCodes.
* Exception Special rate (Booking code rates)
* This rule applies to regular rates (Save, Change and Flex)
* Exception Booking code rate
*
* TODO: (Maybe) notify somewhere that this happened
*/