From 7e023206bc46f9124adca6d52d314da5cdbae2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 30 Mar 2022 14:58:59 +0200 Subject: [PATCH] Fix incorrect min price calculation of daytrip rooms --- .../ext/ep_products/Classes/Service/ContingentDataService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php b/public/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php index 5be066ba..5e3b91f4 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/ContingentDataService.php @@ -108,7 +108,7 @@ class ContingentDataService $row['servicesIncluded'] = unserialize($row['servicesIncluded'], ['allowed_classes' => false]); $row['servicesOptional'] = unserialize($row['servicesOptional'], ['allowed_classes' => false]); - $row['priceForSelection'] = $row['price'] + ($nights - $row['minNights']) * $row['additionalNightPrice']; + $row['priceForSelection'] = $row['price'] * $row['minNights'] + ($nights - $row['minNights']) * $row['additionalNightPrice']; $rooms[] = $row; }