display payment link only for online payable invoices (#8511)
This commit is contained in:
parent
24d39f9cf1
commit
0ab4585e66
|
@ -26,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="issued">{% trans "Issued on:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</div>
|
<div class="issued">{% trans "Issued on:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</div>
|
||||||
{% if item.payment_date %}
|
{% if item.online_payment and item.payment_date %}
|
||||||
<div class="paid">{% trans "Payed on:" %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}</div>
|
<div class="paid">{% trans "Payed on:" %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.amount >= regie.payment_min_amount %}
|
{% if item.amount >= regie.payment_min_amount %}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'view-item' regie_id=item.regie.pk item_id=item.id %}" rel="popup" class="icon-view">{% trans "View" %}
|
<a href="{% url 'view-item' regie_id=item.regie.pk item_id=item.id %}" rel="popup" class="icon-view">{% trans "View" %}
|
||||||
{% if item.amount >= item.regie.payment_min_amount %}{% trans "and pay" %}{% endif %}
|
{% if item.online_payment and item.amount >= item.regie.payment_min_amount %}{% trans "and pay" %}{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% if item.has_pdf %} /
|
{% if item.has_pdf %} /
|
||||||
<a href="{% url 'download-item-pdf' regie_id=item.regie.pk item_id=item.id %}" class="icon-pdf">
|
<a href="{% url 'download-item-pdf' regie_id=item.regie.pk item_id=item.id %}" class="icon-pdf">
|
||||||
|
|
Reference in New Issue