From 0ab4585e664fbdea21bd48e804709ccb45ce0f70 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 7 Oct 2015 14:18:19 +0200 Subject: [PATCH] display payment link only for online payable invoices (#8511) --- lingo/templates/lingo/combo/item.html | 2 +- lingo/templates/lingo/combo/items.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lingo/templates/lingo/combo/item.html b/lingo/templates/lingo/combo/item.html index c3c219c..43d042e 100644 --- a/lingo/templates/lingo/combo/item.html +++ b/lingo/templates/lingo/combo/item.html @@ -26,7 +26,7 @@ {% endif %}
{% trans "Issued on:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}
- {% if item.payment_date %} + {% if item.online_payment and item.payment_date %} {% endif %} {% if item.amount >= regie.payment_min_amount %} diff --git a/lingo/templates/lingo/combo/items.html b/lingo/templates/lingo/combo/items.html index ea902e3..10fda29 100644 --- a/lingo/templates/lingo/combo/items.html +++ b/lingo/templates/lingo/combo/items.html @@ -26,7 +26,7 @@ {% 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 %} {% if item.has_pdf %} /