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/Services/ItineraryCostService.php +2 -1 3.0.4 → 3.0.16 View file →
@@ -3,8 +3,9 @@
3 3 declare(strict_types=1);
4 4
5 5 namespace Yatra\Services;
6 6
7 +use Yatra\Database\Tables\BookingsTable;
7 8 use Yatra\Repositories\ItineraryRepository;
8 9
9 10 /**
10 11 * Itinerary Cost Service
@@ -147,9 +148,9 @@
147 148 {
148 149 try {
149 150 // Get booking details directly from database to avoid potential loops
150 151 global $wpdb;
151 - $table_name = $wpdb->prefix . 'yatra_new_bookings';
152 + $table_name = BookingsTable::getTableName();
152 153
153 154 $booking = $wpdb->get_row($wpdb->prepare(
154 155 "SELECT trip_id, travelers_count, travel_date, itinerary_costs FROM {$table_name} WHERE id = %d",
155 156 $bookingId