Projet

Général

Profil

0001-toulouse_axel-fix-has_pdf-value-for-historical-invoi.patch

Lauréline Guérin, 25 février 2020 14:50

Télécharger (2,77 ko)

Voir les différences:

Subject: [PATCH 1/2] toulouse_axel: fix has_pdf value for historical invoices
 (#40163)

 passerelle/contrib/toulouse_axel/utils.py     | 2 +-
 tests/data/toulouse_axel/invoices_history.xml | 2 +-
 tests/test_toulouse_axel.py                   | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
passerelle/contrib/toulouse_axel/utils.py
159 159
            'created': invoice['EMISSION'],
160 160
            'pay_limit_date': '',
161 161
            'online_payment': False,
162
            'has_pdf': invoice['IPDF'] == '1',
162
            'has_pdf': invoice['IPDF'] == 'O',
163 163
        })
164 164
    else:
165 165
        data.update({
tests/data/toulouse_axel/invoices_history.xml
28 28
        <IDFACTURE>43</IDFACTURE>
29 29
        <NOFACTURE>43</NOFACTURE>
30 30
        <LIBELLE>PRESTATIONS OCTOBRE 2015</LIBELLE>
31
        <IPDF>O</IPDF>
31
        <IPDF>N</IPDF>
32 32
      </FACTURE>
33 33
    </DIRECTION>
34 34
</LISTFACTURE>
tests/test_toulouse_axel.py
1640 1640
            'amount': 0,
1641 1641
            'created': '2017-03-23',
1642 1642
            'display_id': '42',
1643
            'has_pdf': False,
1643
            'has_pdf': True,
1644 1644
            'id': 'historical-XXX-42',
1645 1645
            'label': 'PRESTATIONS SEPTEMBRE 2015',
1646 1646
            'online_payment': False,
......
1681 1681
                    'IDDIRECTION': 'DIR-B',
1682 1682
                    'IDFACTURE': 43,
1683 1683
                    'IDFAMILLE': 'XXX',
1684
                    'IPDF': 'O',
1684
                    'IPDF': 'N',
1685 1685
                    'LIBDIRECTION': 'DIRECTION B',
1686 1686
                    'LIBELLE': 'PRESTATIONS OCTOBRE 2015',
1687 1687
                    'MONTANT': '28.98',
......
1766 1766
        'amount': 0,
1767 1767
        'created': '2017-03-23',
1768 1768
        'display_id': '42',
1769
        'has_pdf': False,
1769
        'has_pdf': True,
1770 1770
        'id': 'historical-XXX-42',
1771 1771
        'label': 'PRESTATIONS SEPTEMBRE 2015',
1772 1772
        'online_payment': False,
1773
-