{{ email_title }}
{%- if po_number %} {%- endif %}
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

{%- endif %}
Invoice {{ order_name }}
PO number #{{ po_number }}
{% if payment_terms.type == 'receipt' and payment_terms.next_payment.due_at == nil %} {% assign due_date = 'now' %} {% else %} {% assign due_date = payment_terms.next_payment.due_at | default: nil %} {% endif %} {% if payment_terms.type == 'fulfillment' and payment_terms.next_payment.due_at == nil %}

Payment of {{ order.total_outstanding | money }} is due on fulfillment

{% else %}

Payment of {{ order.total_outstanding | money }} is due {{ due_date | date: format: 'date' }}

{% endif %} {% if custom_message != blank %}

{{ custom_message }}

{% endif %} {% if checkout_payment_collection_url %}
Pay now
{% endif %}

Order summary

{% for line in subtotal_line_items %} {% endfor %}
{% if line.image %} {% endif %} {% if line.product.title %} {% assign line_title = line.product.title %} {% else %} {% assign line_title = line.title %} {% endif %} {% if line.quantity < line.quantity %} {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %} {% else %} {% assign line_display = line.quantity %} {% endif %} {{ line_title }} × {{ line_display }}
{% if line.variant.title != 'Default Title' %} {{ line.variant.title }}
{% endif %} {% for group in line.groups %} Part of: {{ group.display_title }}
{% endfor %} {% if line.gift_card and line.properties["__shopify_send_gift_card_to_recipient"] %} {% for property in line.properties %} {% assign property_first_char = property.first | slice: 0 %} {% if property.last != blank and property_first_char != '_' %}
{{ property.first }}:
{% if property.last contains '/uploads/' %} {{ property.last | split: '/' | last }} {% else %} {{ property.last }} {% endif %}
{% endif %} {% endfor %} {% endif %} {% if line.selling_plan_allocation %} {{ line.selling_plan_allocation.selling_plan.name }}
{% endif %} {% if line.refunded_quantity > 0 %} Refunded {% endif %} {% if line.discount_allocations %} {% for discount_allocation in line.discount_allocations %} {% if discount_allocation.discount_application.target_selection != 'all' %}

{{ discount_allocation.discount_application.title | upcase }} (-{{ discount_allocation.amount | money }})

{% endif %} {% endfor %} {% endif %}
{% if line.original_line_price != line.final_line_price %} {{ line.original_line_price | money }} {% endif %}

{% if line.final_line_price > 0 %} {{ line.final_line_price | money }} {% else %} Free {% endif %}

{% assign order_discount_count = 0 %} {% assign total_order_discount_amount = 0 %} {% assign has_shipping_discount = false %} {% for discount_application in discount_applications %} {% if discount_application.target_selection == 'all' and discount_application.target_type == 'line_item' %} {% assign order_discount_count = order_discount_count | plus: 1 %} {% assign total_order_discount_amount = total_order_discount_amount | plus: discount_application.total_allocated_amount %} {% endif %} {% if discount_application.target_type == 'shipping_line' %} {% assign has_shipping_discount = true %} {% assign shipping_discount = discount_application.title %} {% assign shipping_amount = discount_application.total_allocated_amount %} {% endif %} {% endfor %} {% if order_discount_count > 0 %} {% if order_discount_count == 1 %} {% endif %} {% if order_discount_count > 1 %} {% endif %} {% for discount_application in discount_applications %} {% if discount_application.target_selection == 'all' and discount_application.target_type != 'shipping_line' %} {% endif %} {% endfor %} {% endif %} {% if has_shipping_discount %} {% else %} {% endif %} {% if total_tip_received and total_tip_received > 0 %} {% endif %}

Subtotal

{{ subtotal_price | plus: total_order_discount_amount | money }}

Order Discount

-{{ total_order_discount_amount | money }}

Order Discounts

-{{ total_order_discount_amount | money }}

{{ discount_application.title }} (-{{ discount_application.total_allocated_amount | money }})

Shipping

Free

{{ shipping_discount }} (-{{ shipping_amount | money }})

Shipping

{{ shipping_price | money }}

Estimated taxes

{{ tax_price | money }}

Tip

{{ total_tip_received | money }}
{% if total_price > total_outstanding %} {% else %}

Updated total

{{ total_price | money }}

Already paid

{{ net_payment | money }}

Amount to pay

{{ total_outstanding | money_with_currency }}

Amount to pay

{{ total_outstanding | money_with_currency }}
{% endif %}
{% if shipping_address or billing_address or shipping_method or payment_terms or company_location %}

Customer information

{% if shipping_address %} {% endif %} {% if billing_address %} {% endif %}

Shipping address

{{ shipping_address | format_address }}

Billing address

{{ billing_address | format_address }}
{% if company_location %} {% endif %} {% if payment_terms %} {% if shipping_method %} {% endif %}

Location

{{ company_location.name }}

Payment

{% if payment_terms.type == 'receipt' and payment_terms.next_payment.due_at == nil %} {% assign due_date = 'now' %} {% else %} {% assign due_date = payment_terms.next_payment.due_at | default: nil %} {% endif %} {% if payment_terms.type == 'fulfillment' and payment_terms.next_payment.due_at == nil %}

{{ payment_terms.translated_name }}

{% else %}

{{ payment_terms.translated_name }}: Due {{ due_date | date: format: 'date' }}

{% endif %} {% endif %}

Shipping method

{{ shipping_method.title }}
{{ shipping_method.price | money }}

{% endif %}