diff --git a/lingo/models.py b/lingo/models.py index 74799be..c1ebf05 100644 --- a/lingo/models.py +++ b/lingo/models.py @@ -56,7 +56,8 @@ def build_remote_item(data, regie): total_amount=data.get('total_amount'), amount=data.get('amount'), subject=data.get('label'), - has_pdf=data.get('has_pdf')) + has_pdf=data.get('has_pdf'), + online_payment=data.get('online_payment')) class Regie(models.Model): @@ -176,7 +177,8 @@ class BasketItem(models.Model): class RemoteItem(object): def __init__(self, id, regie, creation_date, total_amount, - amount, display_id, subject, has_pdf): + amount, display_id, subject, has_pdf, + online_payment): self.id = id self.regie = regie self.creation_date = parser.parse(creation_date) @@ -185,6 +187,7 @@ class RemoteItem(object): self.display_id = display_id self.subject = subject self.has_pdf = has_pdf + self.online_payment = online_payment class Transaction(models.Model): diff --git a/lingo/templates/lingo/combo/item.html b/lingo/templates/lingo/combo/item.html index b7c79d6..a4974a8 100644 --- a/lingo/templates/lingo/combo/item.html +++ b/lingo/templates/lingo/combo/item.html @@ -29,7 +29,7 @@ {% if item.payment_date %}

{% trans "Payed on : " %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}

{% endif %} - {% if item.amount %} + {% if item.online_payement %} {% csrf_token %}