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

{% trans 'Admin: Subscription Detail' %}

{% trans 'Subscription Overview' %}

{{ object.gateway_id}}

{{ object.name}}

{{ object.receipts.first.order_item.offer.offer_description|default_if_none:"" }}

{% trans 'Transaction' %}
{{object.gateway_id}}
{% trans 'Auto Renew' %}
{{ object.auto_renew }}
{% trans 'Term Type' %}
{{object.receipts.first.order_item.offer.get_terms_display}}
{% trans 'Trial Period' %}
{{object.receipts.first.order_item.offer.term_details.trial_occurrences|default:'0'}} {% if object.receipts.first.order_item.offer.term_details.term_units == 10 %} {% trans 'Days' %} {% else %} {% trans 'Months' %} {% endif %}
{% trans 'Ends On' %}
{{ object.receipts.last.end_date|date:'Y-M-d' }}
{% trans 'Cost' %}
${{ object.payments.last.amount }} {{ object.receipts.first.order_item.invoice.currency|upper }}
{% trans 'Actions:' %}
{% if object.status == 30 %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %}
{% trans 'Billing' %}
{% trans 'Customer Name' %}
{{payment.profile.user.first_name}}
{% trans 'Customer Last Name' %}
{{payment.profile.user.last_name}}
{% trans 'Customer E-Mail' %}
{{payment.profile.user.email}}
{% trans 'Name on Card' %}
{{payment.payee_full_name}}
{% trans 'Account' %}
{{payment.result.payment_info.account_number}}
{% trans 'Billing Address:' %}
{{payment.billing_address.get_address_display}}
{% if billing_form %} {% endif %}
{% trans 'Invoices' %}
{% for invoice in object.profile.invoices.all %}
{% trans '#' %} {% trans 'Date Created' %} {% trans 'Status' %} {% trans 'Subtotal' %} {% trans 'Tax' %} {% trans 'Total' %} {% trans 'Currency' %}
{{invoice.pk }} {{invoice.created|date:'Y-m-d' }} {{invoice.get_status_display }} {{invoice.subtotal }} {{invoice.tax }} {{invoice.total }} {{invoice.currency }}
{% for payment in invoice.payments.all %} {% endfor %}
{% trans 'Payments' %} {% trans '#' %} {% trans 'Transaction' %} {% trans 'Amount' %} {% trans 'Payee' %} {% trans 'Account' %} {% trans 'Success' %}
{{payment.pk}} {{payment.transaction}} {{payment.amount}} {{payment.payee_full_name}} {{payment.result.payment_info.account_number}} {{payment.success}}
{% for order_item in invoice.order_items.all %} {% for receipt in order_item.receipts.all %} {% comment %} {% endcomment %} {% endfor %} {% endfor %} {% endfor %}
{% trans 'Receipts' %} {% trans '#' %} {% trans 'Transaction' %} {% trans 'Name' %} {% trans 'Start Date' %} {% trans 'End Date' %} {% trans 'Status' %} {% trans 'Actions' %}
{{receipt.pk}} {{receipt.transaction}} {{order_item.name}} {{receipt.start_date|date:'Y-m-d'}} {{receipt.end_date|date:'Y-m-d'}} {{receipt.get_status_display}} {% trans 'TBD' %} {% trans 'Refund' %}
{% trans 'Payments' %}
{% for payment in payments %} {% endfor %}
{% trans '#' %} {% trans 'Invoice' %} {% trans 'Transaction' %} {% trans 'Submitted Date' %} {% trans 'Amount' %} {% trans 'Status' %} {% trans 'Succeded' %}
{{payment.pk }} {{payment.invoice.pk }} {{payment.transaction }} {{payment.submitted_date|date:'Y-m-d' }} {{payment.amount }} {{payment.get_status_display }} {{payment.success }}
{% trans 'Receipts' %}
{% for receipt in receipts %} {% endfor %}
{% trans '#' %} {% trans 'transaction' %} {% trans 'Start Date' %} {% trans 'End Date' %}
{{receipt.pk }} {{receipt.transaction }} {{receipt.start_date|date:'Y-m-d' }} {{receipt.end_date|date:'Y-m-d' }}
{% endblock %}