0001-astregs-allow-custom-association-status-on-creation-.patch
passerelle/apps/astregs/models.py | ||
---|---|---|
70 | 70 |
"type": "string", |
71 | 71 |
"required": False |
72 | 72 |
}, |
73 |
"status": { |
|
74 |
"description": "association status", |
|
75 |
"type": "string", |
|
76 |
"required": False, |
|
77 |
"enum": ["PROPOSE", "VALIDE", "REFUSE", "BLOQUE", "A COMPLETER"] |
|
78 |
}, |
|
73 | 79 |
"address": { |
74 | 80 |
"description": "association address", |
75 | 81 |
"type": "string", |
... | ... | |
329 | 335 |
'NumeroSiretFin': post_data['nic'], |
330 | 336 |
# can be D (débiteur), F (fournisseur) or * (both) |
331 | 337 |
'Type': post_data.get('type', '*'), |
332 |
'StatutTiers': 'PROPOSE',
|
|
338 |
'StatutTiers': post_data.get('status', 'PROPOSE'),
|
|
333 | 339 |
'AdresseIsAdresseDeFacturation': True, |
334 | 340 |
'AdresseIsAdresseDeCommande': True, |
335 | 341 |
'AdresseTitre': 'AdressePrincipale', |
336 |
- |