Correct invoice for yearly subscription

This commit is contained in:
PCoder 2019-11-15 20:43:54 +05:30
parent 6eef592cd8
commit a423dd9f49

View file

@ -195,8 +195,13 @@
{% if invoice.order.subscription_id %}
<p>
<span>{% trans "Recurring" %}: </span>
{% if invoice.order.generic_product.product_subscription_interval == 'year' %}
<strong class="pull-right">{{invoice.order.created_at|date:'d'|ordinal}} {{invoice.order.created_at|date:'F'}}
{% trans "of every year" %}</strong>
{% else %}
<strong class="pull-right">{{invoice.order.created_at|date:'d'|ordinal}}
{% trans "of every month" %}</strong>
{% endif %}
</p>
{% endif %}
</div>