{% 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.ordered_date|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|default_if_none:"0.00"|floatformat:2 }}
{% endfor %}

{% trans 'Summary' %}

{% trans 'Billing Address' %}

{{ object.get_payment_billing_address }}

{% trans 'Payment Method' %}

{% trans 'Credit Card' as card %} {% firstof payment.result.account_type card as account_type %} {% blocktrans with account_number=payment.result.account_number %} {{ account_type }} ending in {{ account_number }} {% endblocktrans %}

{% endblock %}