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/ItineraryPdfBuilder.php +7 -1 3.0.13 → 3.0.16 View file →
@@ -134,9 +134,15 @@
134 134 'trip_title' => $trip ? ((string) ($trip->title ?? $tripFallbackTitle)) : $tripFallbackTitle,
135 135 'trip_description'=> $trip ? (string) ($trip->description ?? $trip->content ?? '') : '',
136 136 // Duration is duration_days/duration_nights (no `duration` column).
137 137 'trip_duration' => $trip
138 - ? yatra_format_duration((int) ($trip->duration_days ?? 0), isset($trip->duration_nights) ? (int) $trip->duration_nights : null)
138 + ? yatra_format_duration(
139 + (int) ($trip->duration_days ?? 0),
140 + isset($trip->duration_nights) ? (int) $trip->duration_nights : null,
141 + // Hour-based day tours: "8 hours" instead of "1 day". Absent
142 + // or NULL on every day-based trip, which keeps its wording.
143 + (int) ($trip->duration_hours ?? 0)
144 + )
139 145 : '',
140 146 'trip_difficulty' => $trip ? (string) ($trip->difficulty_name ?? '') : '',
141 147 'trip_highlights' => $trip ? ($trip->highlights ?? $trip->trip_highlights ?? '') : '',
142 148 'trip_includes' => $trip ? ($trip->includes ?? $trip->trip_includes ?? '') : '',