{% extends 'dashboard/layout.html' %}
{% load currency_filters %}
{% block title %}
Voucher '{{ voucher.name }}' | Vouchers | {{ block.super }}
{% endblock %}
{% block breadcrumbs %}
{% endblock %}
{% block header %}
{% endblock header %}
{% block dashboard_content %}
Voucher details
Name | {{ voucher.name }} |
Code | {{ voucher.code }} |
Start date | {{ voucher.start_date }} |
End date | {{ voucher.end_date }} |
Usage | {{ voucher.usage }} |
Discount | {{ voucher.benefit.description }} |
Voucher performance
Number of basket additions | {{ voucher.num_basket_additions }} |
Number of orders | {{ voucher.num_orders }} |
Total discount | {{ voucher.total_discount }} |
Recent orders
{% if not discounts %}
No orders have been placed that use this voucher.
{% else %}
Order number |
Order total |
Discount |
Date placed |
|
{% for discount in discounts %}
{% with order=discount.order %}
{{ order.number }} |
{{ order.total_incl_tax|currency }} |
{{ discount.amount|currency }} |
{{ order.date_placed }} |
View |
{% endwith %}
{% endfor %}
{% endif %}
{% endblock dashboard_content %}