| @@ -149,9 +149,12 @@ | ||
| 149 | 149 | // optionally render strike-through original pricing if it |
| 150 | 150 | // wants to highlight savings — but the default render is |
| 151 | 151 | // the post-DP price baked in here. |
| 152 | 152 | 'catalog_price' => $catalogPrice, |
| 153 | - 'subtotal' => $categoryPrice * $count, | |
| 153 | + // Single source of truth for the line amount: per-person × | |
| 154 | + // count, flat per-group, or per-block group pricing. Keeps | |
| 155 | + // the breakdown row in lock-step with the charged total. | |
| 156 | + 'subtotal' => \Yatra\Services\TripPricingService::categoryLineSubtotal($pt, $count, $categoryPrice), | |
| 154 | 157 | 'pricing_mode' => $pt->pricing_mode ?? 'per_person', |
| 155 | 158 | ]; |
| 156 | 159 | } |
| 157 | 160 | } |