Projet

Général

Profil

0001-astregs-make-CodeDomiciliation-parameter-mandatory-4.patch

Serghei Mihai (congés, retour 15/05), 07 janvier 2021 18:47

Télécharger (1,86 ko)

Voir les différences:

Subject: [PATCH] astregs: make 'CodeDomiciliation' parameter mandatory
 (#49907)

 passerelle/apps/astregs/models.py | 2 ++
 tests/test_astregs.py             | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
passerelle/apps/astregs/models.py
192 192
        "LibelleCourt",
193 193
        "NumeroIban",
194 194
        'CodeBic',
195
        "CodeDomiciliation",
195 196
        "CodeStatut",
196 197
        "CodeDevise",
197 198
        "CodeIso2Pays",
......
249 250
        "LibelleCourt",
250 251
        "NumeroIban",
251 252
        "CodeBic",
253
        "CodeDomiciliation",
252 254
        "CodeStatut",
253 255
        "CodeDevise",
254 256
        "CodeIso2Pays",
tests/test_astregs.py
614 614
        'LibelleCompteEtranger': 'LABEL',
615 615
        'LibelleCourt': 'Test',
616 616
        'LibellePays': 'FR',
617
        'NumeroIban': 'FR76AABBCCDDEEFFGGHHIIJJKKLLM'
617
        'NumeroIban': 'FR76AABBCCDDEEFFGGHHIIJJKKLLM',
618
        'CodeDomiciliation': '1'
618 619
    }
619 620

  
620 621
    resp = app.post_json('/astregs/test/create-tiers-rib', params=payload)
......
671 672
        'CodePaiement': '3',
672 673
        'CodeStatut': 'PROPOSE',
673 674
        'CodeTiers': '487464',
675
        'CodeDomiciliation': '1',
674 676
        'LibelleCompteEtranger': 'LABEL',
675 677
        'LibelleCourt': 'New Test',
676 678
        'LibellePays': 'FR',
677
-