{% extends 'base.html' %} {% block title %}Discounts{% endblock %} {% block content %}
Discounts
Add Discount
{% for discount in discounts %} {% empty %} {% endfor %}
Code Type Value Valid From Valid Until Status Actions
{{ discount.code }} {{ discount.get_discount_type_display }} {% if discount.discount_type == 'percentage' %} {{ discount.discount_percentage }}% {% else %} {{ discount.discount_amount }} {% endif %} {{ discount.valid_from }} {{ discount.valid_until }} {% if discount.is_active %} Active {% else %} Inactive {% endif %} View Edit Delete
No discounts found.
{% endblock %}