diff --git a/combo/apps/lingo/templates/lingo/combo/item.html b/combo/apps/lingo/templates/lingo/combo/item.html index 1c43988f..93ec8418 100644 --- a/combo/apps/lingo/templates/lingo/combo/item.html +++ b/combo/apps/lingo/templates/lingo/combo/item.html @@ -41,7 +41,7 @@ {{ item.payment_limit_date|date:"SHORT_DATE_FORMAT" }} {% trans "(up to and including)" %} {% endif %} {% if item.payment_date %} - + {% elif item.paid %} {% endif %} diff --git a/tests/test_lingo_remote_regie.py b/tests/test_lingo_remote_regie.py index e4192cf6..c33b6006 100644 --- a/tests/test_lingo_remote_regie.py +++ b/tests/test_lingo_remote_regie.py @@ -670,7 +670,7 @@ def test_remote_invoice_successfull_payment_redirect( mock_get.return_value = mock_json mock_pay_invoice.return_value = mock.Mock(status_code=200) resp = app.get('/lingo/item/%s/%s/?page=%s' % (remote_regie.id, encrypt_id, page.pk)) - assert '"paid"' not in resp + assert '"paid paid-info"' not in resp form = resp.form assert form['next_url'].value == '/active-remote-invoices-page/' form['email'] = 'test@example.net' @@ -702,7 +702,7 @@ def test_remote_invoice_successfull_payment_redirect( # check true payment status is visible, even if the remote regie web-service still report the invoice as unpaid resp = app.get('/lingo/item/%s/%s/?page=%s' % (remote_regie.id, encrypt_id, page.pk)) assert not INVOICES[0]['paid'] - assert '"paid"' in resp + assert '"paid paid-info"' in resp @mock.patch('combo.apps.lingo.models.UserSAMLIdentifier')