| @@ -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 |