{% extends "vendor/base.html" %} {% load i18n %} {% block vendor_content %}

{% trans 'Purchase Confirmation' %}

{% trans 'Thank you for the order. You can view this invoice in "My Account" under the Billing section.' %}
{% trans 'The order number is' %}: {{ object.pk }}
{% trans 'Ordered on' %} {{ object.created|date }}
{% for order_item in object.order_items.all %}
{{ order_item.name }}

{% trans 'Type' %}: {{ order_item.offer.get_terms_display }}

{% trans 'Quantity' %}: {{ order_item.quantity }}

${{ order_item.total }}
{% endfor %}

{% trans 'Summary' %}

{% trans 'Subtotal' %} ${{invoice.subtotal}}
{% trans 'Estimated Shipping' %} ${{invoice.shipping}}
{% trans 'Estimated Tax' %} ${{invoice.tax}}

{% trans 'Total Charged' %} ${{invoice.total}}

{% trans 'Billing Address' %}

{{ object.get_payment_billing_address }}

{% trans 'Payment Method' %}

{% for payment in object.payments.all %} {% if payment.success == True %}

{{ payment.result.account_type }} {% trans 'ending' %} {{ payment.result.account_number }}

{% endif %} {% endfor %}
{% endblock %}