display payment link only for online payable invoices (#8511)

This commit is contained in:
Serghei Mihai 2015-10-07 14:18:19 +02:00
parent 24d39f9cf1
commit 0ab4585e66
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
</div>
{% endif %}
<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>
{% endif %}
{% if item.amount >= regie.payment_min_amount %}

View File

@ -26,7 +26,7 @@
</td>
<td>
<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>
{% if item.has_pdf %} /
<a href="{% url 'download-item-pdf' regie_id=item.regie.pk item_id=item.id %}" class="icon-pdf">