PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Models/Checkout.php +4 -1 3.0.5 → 3.0.16 View file →
@@ -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 }