{# Built-in delivery note layout. Same context as document.html (show_warehouse is true); prints quantities and yards, no prices. #} {% if pdf_state_notice %}
{{ pdf_state_notice }}
{% endif %} {# ---- Header ---- #}
{{ company_name or doc.company or "" }}

{{ title }}{% if doc.is_return %} RETURN{% endif %}

{{ doc.name }}
{{ doc.posting_date or doc.transaction_date or "" }}
{# ---- Parties ---- #}

From

{{ company_name or doc.company or "" }}
{% if company_info %} {% if company_info.get("address") %}
{{ company_info.address }}
{% endif %} {% if company_info.get("city") or company_info.get("zip_code") or company_info.get("country") %}
{{ company_info.get("city", "") }}{% if company_info.get("zip_code") %} {{ company_info.zip_code }}{% endif %}{% if company_info.get("country") %}, {{ company_info.country }}{% endif %}
{% endif %} {% if company_info.get("email") %}
{{ company_info.email }}
{% endif %} {% if company_info.get("phone") %}
{{ company_info.phone }}
{% endif %} {% if company_info.get("tax_id") %}
Tax ID: {{ company_info.tax_id }}
{% endif %} {% endif %}

{{ party_label }}

{{ party_name }}
{% if party_info %} {% if party_info.get("address") %}
{{ party_info.address }}
{% endif %} {% if party_info.get("city") or party_info.get("zip_code") or party_info.get("country") %}
{{ party_info.get("city", "") }}{% if party_info.get("zip_code") %} {{ party_info.zip_code }}{% endif %}{% if party_info.get("country") %}, {{ party_info.country }}{% endif %}
{% endif %} {% if party_info.get("email") %}
{{ party_info.email }}
{% endif %} {% if party_info.get("phone") %}
{{ party_info.phone }}
{% endif %} {% if party_info.get("tax_id") %}
Tax ID: {{ party_info.tax_id }}
{% endif %} {% endif %}
{# ---- Meta fields ---- #} {% if meta_fields %}
{% for m in meta_fields %}
{{ m.label }}
{{ m.value }}
{% endfor %}
{% endif %} {# ---- Intro text ---- #} {% if intro_html %}
{{ intro_html | safe }}
{% endif %} {# ---- Items ---- #} {% for item in items %} {% endfor %}
# Item Description Warehouse Qty Unit
{{ loop.index }} {{ item.item_code or "" }} {{ item.item_name or item.description or "" }}{% if item.item_name and item.description and item.description != item.item_name %}
{{ item.description }}{% endif %}
{{ item.warehouse_name or item.warehouse or "" }} {{ "%g"|format(item.qty or 0) }} {{ item.uom or "" }}
{# ---- Remarks ---- #} {% if remarks_html %}
{{ remarks_html | safe }}
{% endif %}
Received in good order
Date, signature
{# ---- Footer ---- #}