• Purpose

    This snippet lets you automatically display only the relevant hotel details for the supplier listed on a Purchase Order.

    If your hotel_hub custom field contains details for multiple crew or suppliers, this code filters the output to show only the matching entry based on the supplier name in the PO header.

    How It Works

    • Reads the hotel_hub data from the linked opportunity.

    • Finds the section that starts with the supplier’s name (e.g. Andy Brown).

    • Displays only that section of text on the Purchase Order document.

    • Ignores all other entries automatically.

    ———————————————————

    {% assign opportunity = order.sources.first %}

    <!-- Hotel section -->

    <div class="section notes">

      {% assign supplier_name = order.supplier_address_name | strip %}

      {% assign hotel_lines = opportunity.hotel_hub | newline_to_br | split: '<br />' %}

      {% assign matched_block = "" %}

      {% assign current_block = "" %}

      {% assign include_block = false %}

      {% for line in hotel_lines %}

        {% assign clean_line = line | strip %}

        {% if clean_line == supplier_name %}

          {% assign include_block = true %}

          {% assign current_block = clean_line %}

        {% elsif clean_line == "" %}

          {% assign include_block = false %}

        {% endif %}

        {% if include_block %}

          {% assign matched_block = matched_block | append: clean_line | append: "<br />" %}

        {% endif %}

      {% endfor %}

      {% if matched_block != blank %}

        <h4>Hotel Details</h4>

        <p>{{ matched_block }}</p>

      {% endif %}

    </div>

  • Purpose

    This snippet allows you to automatically display the Transport Schedule from an Opportunity directly against an item on a Purchase Order.

    It’s ideal for courier bookings, haulage suppliers, or external transport providers who only need clear, readable transport instructions without accessing the full job.

    The data is pulled straight from the Transport Hub schedule stored on the Opportunity, ensuring the information is always up to date.

    How It Works

    • Reads the linked Opportunity from the Purchase Order.

    • Pulls the transport_schedule stored against the Opportunity Item.

    • Converts line breaks so the schedule formats correctly on documents.

    • Displays the transport schedule inline on the Purchase Order item.

    Example Use Case

    • Courier Purchase Orders

    • External haulage companies

    • Driver paperwork

    • Job-specific transport instructions per item

    ———————————————————

    {% assign opportunity = order.sources.first %}

    {{ item.opportunity_cost.asset.opportunity_item.transport_schedule | newline_to_br }}

  • Purpose

    This snippet allows you to automatically insert the Transport Hub schedule into a Discussion template on an Opportunity.

    It’s ideal for sharing transport details with internal teams and external suppliers, ensuring everyone is working from the same, up-to-date transport plan without copying and pasting.

    The data is pulled directly from the Transport Hub on the Opportunity, so any changes made to the schedule are instantly reflected in the discussion content.

    How It Works

    • Reads the Transport Hub data stored on the Opportunity

    • Pulls the current transport schedule

    • Converts line breaks so formatting is preserved in the discussion

    • Inserts the transport schedule directly into the discussion body

    Example Use Cases

    • Internal team communications

    • External suppliers and haulage partners

    • Courier and transport coordination

    • Ops and warehouse briefings

    • Sharing live transport plans without attachments

    ———————————————————

    {{ opportunity.transport_hub | newline_to_br }}

  • Purpose

    This snippet allows you to display all Transport Hub schedules directly on an Opportunity document.

    It’s ideal for internal paperwork, driver packs, warehouse prep sheets, and job documents where the full transport plan needs to be clearly visible in one place.

    The data is pulled directly from the Transport Hub on the Opportunity, ensuring the document always reflects the latest transport planning without manual updates.

    How It Works

    • Reads the Transport Hub data stored on the Opportunity

    • Pulls the combined transport schedules

    • Converts line breaks so formatting is preserved on documents

    • Displays the full transport schedule inline on the Opportunity document

    Example Use Cases

    • Driver packs

    • Warehouse preparation sheets

    • Internal job paperwork

    • Full transport overview per Opportunity

    ———————————————————

    {{ order.transport_hub | newline_to_br }}

  • Purpose

    This snippet allows you to display the Transport Schedule for an individual Opportunity Item directly on an Opportunity document.

    It’s ideal when different items on the same job have separate transport requirements, allowing clear, item-specific instructions to be shown without cluttering the document with irrelevant details.

    The data is pulled directly from the Transport Hub schedule stored against each Opportunity Item, ensuring transport instructions remain accurate and up to date.

    How It Works

    • Reads the Transport Hub schedule stored on the Opportunity Item

    • Pulls the item-specific transport_schedule

    • Converts line breaks so formatting is preserved on documents

    • Displays the schedule inline against each item

    Example Use Cases

    • Mixed courier and in-house transport on the same job

    • Item-specific delivery or collection instructions

    • Warehouse pick lists with transport notes per item

    • Driver paperwork for split or staged deliveries

    ———————————————————

    {% for item in order.services %}

    {{ item.transport_schedule | newline_to_br }} 

DOCUMENT SUPPORT