{% extends "django_program/manage/base.html" %} {% block title %}Order {{ order.reference }}{% endblock %} {% block breadcrumb %} {% endblock %} {% block page_title %}

Order {{ order.reference }}

{% endblock %} {% block content %}
Reference
{{ order.reference }}
User
{{ order.user.get_full_name|default:order.user.username }}
Email
{{ order.user.email|default:"--" }}
Status
{% if order.status == "paid" %} Paid {% elif order.status == "pending" %} Pending {% elif order.status == "refunded" %} Refunded {% elif order.status == "partially_refunded" %} Partial Refund {% elif order.status == "cancelled" %} Cancelled {% endif %}
Subtotal
${{ order.subtotal }}
Discount
{% if order.discount_amount %}-${{ order.discount_amount }}{% else %}--{% endif %}
Total
${{ order.total }}
Date
{{ order.created_at|date:"N j, Y, P" }}
{% if order.voucher_code %}
Voucher Code
{{ order.voucher_code }}
{% endif %}
{% if order.billing_name or order.billing_email or order.billing_company %}

Billing Info

{% if order.billing_name %}
Name
{{ order.billing_name }}
{% endif %} {% if order.billing_email %}
Email
{{ order.billing_email }}
{% endif %} {% if order.billing_company %}
Company
{{ order.billing_company }}
{% endif %}
{% endif %}

Line Items

{% if line_items %} {% for item in line_items %} {% endfor %}
Description Qty Unit Price Discount Line Total
{{ item.description }} {{ item.quantity }} ${{ item.unit_price }} {% if item.discount_amount %}-${{ item.discount_amount }}{% else %}--{% endif %} ${{ item.line_total }}
{% else %}

No line items.

{% endif %}

Payments

{% if payments %} {% for payment in payments %} {% endfor %}
Method Status Amount Stripe Date Recorded By Note
{{ payment.get_method_display }} {% if payment.status == "succeeded" %} Succeeded {% elif payment.status == "pending" %} Pending {% elif payment.status == "processing" %} Processing {% elif payment.status == "failed" %} Failed {% elif payment.status == "refunded" %} Refunded {% endif %} ${{ payment.amount }} {% if payment.stripe_payment_intent_id %} {{ payment.stripe_payment_intent_id|truncatechars:20 }} {% elif payment.stripe_charge_id %} {{ payment.stripe_charge_id|truncatechars:20 }} {% else %} -- {% endif %} {{ payment.created_at|date:"M j, Y g:i A" }} {% if payment.created_by %}{{ payment.created_by.get_full_name|default:payment.created_by.username }}{% else %}System{% endif %} {{ payment.note|default:"--"|truncatechars:50 }}
{% else %}

No payments recorded.

{% endif %}
Total Paid
${{ total_paid }}
Balance Remaining
${{ balance_remaining }}
{% if order.status == "pending" %}
Record Manual Payment
{% csrf_token %}
{% endif %} {% endblock %}