Add coupon info to order detail

This commit is contained in:
Nathan Chapman 2023-03-20 13:56:31 -06:00
parent fde08035b7
commit 0bf982e7f8

View File

@ -109,7 +109,7 @@
</tr>
{% if order.coupon_amount > 0 %}
<tr>
<th colspan="4">Discount:</th>
<th colspan="4">Discount {% if order.coupon %}<a href="{% url 'dashboard:coupon-detail' order.coupon.pk %}">{{ order.coupon }} &nearr;</a>{% endif %}:</th>
<td>${{ order.coupon_amount }}</td>
</tr>
{% endif %}