{# ***Begin Custom Options*** Set any of the options in this section from 'false' to 'true' in order to enable them in the template #} {% set hide_rep_info = false %} {# Removes acct rep from PO template #} {% set hide_account_number = false %} {# Removes acct number from PO template #} {% set hide_shipping_table = false %} {# Removes shipping table from PO template #} {% set hide_shipping_notes = false %} {# Removes shipping notes from PO template #} {% set hide_general_notes = false %} {# Removes general notes from PO template #} {# ***End Custom Options*** #} {% extends parameters.print ? "printbase" : "base" %} {% block style %} {% endblock style %} {% block content %} {% for Order in Orders %}

Bestellung #{{ Order.orderID }}

Bestellt am: {{Order.orderedDate|correcttimezone|date ("m/d/y")}}
Erwartet am: {{Order.arrivalDate|correcttimezone|date ("m/d/y")}}
Lieferant

{{ Order.Vendor.name}}

{% if hide_rep_info == false %} {% if Order.Vendor.Reps.VendorRep.firstName|strlen > 0 %}
z. H. {{Order.Vendor.Reps.VendorRep.firstName}} {{Order.Vendor.Reps.VendorRep.lastName}}
{% endif %} {% endif %} {% if hide_account_number == false %} {% if Order.Vendor.accountNumber > 0 %}
Konto-Nr.{{Order.Vendor.accountNumber}}
{% endif %} {% endif %}

{{ Order.Vendor.Contact.Addresses.ContactAddress.address1 }} {% if Order.Vendor.Contact.Addresses.ContactAddress.address2|strlen > 0 %}
{{ Order.Vendor.Contact.Addresses.ContactAddress.address2 }} {% endif %} {% if Order.Vendor.Contact.Addresses.ContactAddress.city|strlen > 0 %}
{{ Order.Vendor.Contact.Addresses.ContactAddress.city }}, {{ Order.Vendor.Contact.Addresses.ContactAddress.state }} {{ Order.Vendor.Contact.Addresses.ContactAddress.zip }} {% endif %} {% for ContactPhone in Order.Vendor.Contact.Phones.ContactPhone %}
{{ ContactPhone.number }} {{ ContactPhone.useType }} {% endfor %} {% for ContactEmail in Order.Vendor.Contact.Emails.ContactEmail %}
{{ ContactEmail.address }} {% endfor %}

Lieferadresse

{{ Order.Shop.name }}

{{ Order.Shop.Contact.Addresses.ContactAddress.address1 }}
{{ Order.Shop.Contact.Addresses.ContactAddress.city }}, {{ Order.Shop.Contact.Addresses.ContactAddress.state }} {{ Order.Shop.Contact.Addresses.ContactAddress.zip }}
{{ Order.Shop.Contact.Phones.ContactPhone.number }}

{% if hide_shipping_table == false %}

Lieferinformationen

{% if Order.MetaData.totalDiscount > 0 %} {% endif %} {% if Order.MetaData.totalDiscount > 0 %} {% endif %}
Versand GesamtmengeRabattSonstige(s)
{% if Order.MetaData.shipping|strlen > 0 %} {{Order.MetaData.shipping|format_currency}} {% else %} Nicht vorhanden {% endif %} {% if Order.totalQuantity|strlen > 0 %} {{Order.totalQuantity}} {% else %} Nicht vorhanden {% endif %} {{Order.discount|floatval * 100}}% {% if Order.MetaData.other|strlen > 0 %} {{Order.MetaData.other|format_currency}} {% else %} Nicht vorhanden {% endif %}

{% if hide_shipping_notes == false %} {% if Order.shipInstructions|strlen > 0 %} {% endif %} {% endif %}
Notizen zur Lieferung {{Order.shipInstructions}}
{% endif %}

Details

{% if Order.discount > 0 %} {% else %} {% endif %} {% for OrderLine in Order.OrderLines.OrderLine %} {% endfor %} {% if Order.MetaData.subtotal > 0 %} {% endif %} {% if Order.MetaData.totalDiscount > 0 %} {% endif %} {% if Order.MetaData.total > 0 %} {% endif %}
Lieferanten-ID UPC-Code Beschreibung Anzahl StückkostenBetrag mit RabattBetrag
{% for ItemVendorNum in OrderLine.Item.ItemVendorNums.ItemVendorNum %} {% if (Order.vendorID|number_format) == (ItemVendorNum.vendorID|number_format) %} {{ ItemVendorNum.value }} {% endif %} {% endfor %} {{OrderLine.Item.upc}} {{OrderLine.Item.description}} {{OrderLine.quantity}} {{OrderLine.MetaData.cost|format_currency}} {{OrderLine.MetaData.total|format_currency}}
Zwischensumme {{Order.MetaData.subtotal|format_currency}}
Rabatt {{Order.MetaData.totalDiscount|format_currency({invert: true})}}
Gesamtsumme {{Order.MetaData.total|format_currency}}

{% if hide_general_notes == false %} {% if Order.Note.note|strlen > 0 %}

Notizen:


{{Order.Note.note|nl2br|raw}} {% endif %} {% endif %} {% endfor %} {% endblock content %}