fix: use correct amount of rooms to calculate rooms pricing

This commit is contained in:
Björn Fromme
2026-03-18 15:24:29 +01:00
parent cb56a4fe46
commit 02ff28acdd
2 changed files with 47 additions and 17 deletions
+4 -5
View File
@@ -83,11 +83,10 @@ class RoomPricingCalculator
continue;
}
// Calculate participant count for this room selection
$participantCount = $room->minPax * $roomSelection->quantity;
// Each participant pays the full room price
$totalPrice = $participantCount * $room->price;
// Pricing in create flow is based on selected room quantity from step 1.
// Do not derive billable units from minPax, which represents capacity constraints.
$participantCount = $roomSelection->quantity;
$totalPrice = $roomSelection->quantity * $room->price;
$roomPricing[] = [
'roomId' => $room->id,