Fix incorrect min price calculation of daytrip rooms
This commit is contained in:
1 parent
2a624bdbec
commit
7e023206bc
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user