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/Scripts/DepartureCapacitySyncFromAvailabilityScript.php +2 -2 3.0.10 → 3.0.16 View file →
@@ -43,9 +43,9 @@
43 43 foreach ($allDepartures as $departure) {
44 44 $date = $departure->start_date ?: $departure->date;
45 45
46 46 // Get correct capacity from availability
47 - $correctCapacity = $this->capacityService->getCapacityForDate($departure->trip_id, $date);
47 + $correctCapacity = $this->capacityService->getCapacityForDate($departure->trip_id, $date, $departure->time ?? null);
48 48
49 49 if ($correctCapacity > 0) {
50 50 // Update if capacity is different
51 51 if ($departure->max_capacity !== $correctCapacity) {
@@ -86,9 +86,9 @@
86 86 $summary['total_departures'] = count($allDepartures);
87 87
88 88 foreach ($allDepartures as $departure) {
89 89 $date = $departure->start_date ?: $departure->date;
90 - $correctCapacity = $this->capacityService->getCapacityForDate($departure->trip_id, $date);
90 + $correctCapacity = $this->capacityService->getCapacityForDate($departure->trip_id, $date, $departure->time ?? null);
91 91
92 92 if ($correctCapacity > 0) {
93 93 if ($departure->max_capacity !== $correctCapacity) {
94 94 $summary['need_update']++;