ref(piaf): utilise le titulaires_prettyprinted désormais exposé par resthys
Parent
9cd0459d7c
révision
369c8a21cf
|
@ -51,7 +51,7 @@ class PrepareInvoice(TestCase):
|
|||
self.assertContains(response, 'Facture inconnue.')
|
||||
response = self.client.post(reverse('retrieve_invoice'), {'numero': '54', 'nom': 'Isabelle Merignac'}, follow=True)
|
||||
self.assertContains(response, 'Facture n° 54.')
|
||||
self.assertContains(response, 'Marc et \n \n Isabelle \n \n MERIGNAC')
|
||||
self.assertContains(response, 'Marc et Isabelle MERIGNAC')
|
||||
|
||||
class ForbidUnpayInvoice(TestCase):
|
||||
def setUp(self):
|
||||
|
|
|
@ -9,15 +9,8 @@
|
|||
Facture n° {{ invoice.numero }}.
|
||||
</div>
|
||||
|
||||
{% regroup payees by nom as payees_list %}
|
||||
<div class="lead text-right">
|
||||
Pour
|
||||
{% for peoples in payees_list %}
|
||||
{% for person in peoples.list %}
|
||||
{{ person.prenom }} {% if not forloop.last %} et {% endif %}
|
||||
{% endfor %}
|
||||
{{ peoples.grouper }} {% if not forloop.last %} et {% endif %}
|
||||
{% endfor %}
|
||||
Pour {{ invoice.compte_payeur.famille.titulaires_prettyprinted }}
|
||||
</div>
|
||||
|
||||
<table class="table table-striped">
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket