Articles on: BP Orders

PDF Liquid Template

{% if agencyLogo %}  {% endif %} {% if agencyLogo == '' and bookingpadLogo %}  {% endif %}

Your trip
Booking ref:
{% if issuedAtDate %}
Document Issue Date:
{% endif %}
{{ pnr }}
{% if issuedAtDate %}
{{ issuedAtDate | date: "%d %b %Y" }}
{% endif %}
Travelers
{% for item in passengers %}
{{ item.data.title | capitalize }} {{ item.data.name }} {{ item.data.surname }}
{% endfor %}
Agency
{% if agencyData.address %}
{% endif %}
Email
{% if agentName %}
Agent Name
{% endif %} {% if agentEmail %}
Agent Email
{% endif %} {% if agencyData.phoneContact %}
Phone Contact
{% endif %}
{{ agencyData.name }}
{% if agencyData.address %}
{{ agencyData.address.street }} {{ agencyData.address.city }}
{% else %}
- - -
{% endif %}
{{ agencyData.email }}
{% if agentName %}
{{ agentName }}
{% endif %} {% if agentEmail %}
{{ agentEmail }}
{% endif %} {% if agencyData.phoneContact %}
{{ agencyData.phoneContact }}
{% else %} - {% endif %}
{% for flight in flights %} {% for segment in flight.segments %}
{{ flight.departure.date | date: "%d %b %Y" }}

Operated by
{{ segment.operatingCarrier.name }}
Departure
{{ segment.originDestination.departure.date | date: "%d %b" }} {{ segment.originDestination.departure.time }}
{{segment.originDestination.departure.airportCode}} ({{ segment.originDestination.departure.airportName }})
{% if segment.originDestination.departure.terminalName %} {% if segment.originDestination.departure.terminalName == segment.originDestination.departure.airportCode %} Terminal: - {% else %} Terminal: {{segment.originDestination.departure.terminalName | default: "-" }} {% endif %} {% endif %}
Arrival
{{ segment.originDestination.arrival.date | date: "%d %b" }} {{ segment.originDestination.arrival.time }}
{{segment.originDestination.arrival.airportCode}} ({{ segment.originDestination.arrival.airportName }})
{% if segment.originDestination.arrival.terminalName %} {% if segment.originDestination.arrival.terminalName == segment.originDestination.arrival.airportCode %} Terminal: - {% else %} Terminal: {{segment.originDestination.arrival.terminalName | default: "-" }} {% endif %} {% endif %}
Duration
{% if segment.detail.duration and segment.detail.duration != '' %}
{{ segment.detail.duration }} {% assign stopQuantity = segment.detail.stopQuantity %} {% if stopQuantity and stopQuantity != '' %} {% if stopQuantity == '0' %} (Non stop) {% elsif stopQuantity == '1' %} (1 Stop) {% else %} (2 Stops or More) {% endif %} {% endif %}
{% else %} - {% endif %}
Booking status
{{ status }}
Class
{{ segment.detail.classOfService.code }}, {{ segment.detail.classOfService.cabinDesignator }}
Baggage allowance
CARRYON:
{% assign passengerFound = false %} {% if flight.baggageAllowance.carryOn.size > 0 %} {% for passenger in passengers %} {% for item in flight.baggageAllowance.carryOn %} {% assign position = forloop.index0 %} {% if position == 0 %} {% if item.passengerRefs contains passenger.travelerReference %}
{{ item.options[0].quantity }} Piece(s) for {{ passenger.data.title | capitalize}} {{ passenger.data.name }} {{ passenger.data.surname }} {% assign passengerFound = true %}
{% endif %} {% endif %} {% endfor %} {% endfor %} {% endif %} {% unless passengerFound %}
-
{% endunless %}
CHECKED:
{% assign passengerFound = false %} {% if flight.baggageAllowance.checked.size > 0 %} {% for passenger in passengers %} {% for item in flight.baggageAllowance.checked %} {% assign position = forloop.index0 %} {% if position == 0 %} {% if item.passengerRefs contains passenger.travelerReference %}
{{ item.options[0].quantity }} Piece(s) for {{ passenger.data.title | capitalize}} {{ passenger.data.name }} {{ passenger.data.surname }} {% assign passengerFound = true %}
{% endif %} {% endif %} {% endfor %} {% endfor %} {% endif %} {% unless passengerFound %}
-
{% endunless %}
{% if segment %}
Equipment
{% if segment.equipment.name and segment.equipment.name != "" %} {{ segment.equipment.name }} {% else %} - {% endif %}
{% endif %} {% if disclosures %}
Flight meal
{% assign mealFound = false %} {% for dsc in disclosures %} {% assign meals = dsc.descriptions | where: 'category', 'MEALS' %} {% if meals.size > 0 %} {{item}} {% for item in meals %} {% if item.originDestinationReference == flight.key %} {% assign mealFound = true %} {{item.text}}{% if forloop.index < meals.size %},{% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% unless mealFound %}
-
{% endunless %}
{% endif %}
{% endfor %} {% endfor %}
{% if tickets.size > 0 %}
Ticket details
{% for item in tickets %} {% assign passenger = passengers | where: 'travelerReference', item.travelerReference | first %}
E-ticket {{ item.number }} {% if passenger %} for {{ passenger.data.title | capitalize }} {{ passenger.data.name }} {{ passenger.data.surname }} {% endif %}
{% endfor %}
{% endif %}

Updated on: 09/04/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!