commented the condition that prevents the booking if pricing is not selected to allow dev while the feature is not implemented

This commit is contained in:
pb 2025-06-27 17:10:32 +02:00
parent d35ad440fa
commit 1ab2bd2153

View File

@ -240,9 +240,10 @@ func plan[T resources.ResourceInterface](
return resources, priceds, errors.New("could not load the processing resource") return resources, priceds, errors.New("could not load the processing resource")
} }
priced := realItem.ConvertToPricedResource(dt, request) priced := realItem.ConvertToPricedResource(dt, request)
if priced.SelectPricing() == nil { // Should be commented once the Pricing selection feature has been implemented, related to the commit d35ad440fa77763ec7f49ab34a85e47e75581b61
return resources, priceds, errors.New("no pricings are selected... can't proceed") // if priced.SelectPricing() == nil {
} // return resources, priceds, errors.New("no pricings are selected... can't proceed")
// }
started, duration := start(realItem, priced) started, duration := start(realItem, priced)
priced.SetLocationStart(started) priced.SetLocationStart(started)
if duration >= 0 { if duration >= 0 {