|
47 | 47 | BesoinDeDerogationDelegueVrae, |
48 | 48 | ChoixStatutPropositionGenerale, |
49 | 49 | DerogationFinancement, |
50 | | - PoursuiteDeCycle, |
| 50 | + PoursuiteDeCycle, ChoixStatutChecklist, |
51 | 51 | ) |
52 | 52 | from admission.ddd.admission.formation_generale.domain.model.proposition import ( |
53 | 53 | Proposition, |
@@ -942,6 +942,7 @@ def _load_dto_for_gestionnaire( |
942 | 942 | is_french_language = get_language() == settings.LANGUAGE_CODE_FR |
943 | 943 | proposition = cls._load_dto(admission) |
944 | 944 | poursuite_de_cycle_a_specifier = proposition.formation.type == TrainingType.BACHELOR.name |
| 945 | + checklist_actuelle = admission.checklist.get('current') |
945 | 946 |
|
946 | 947 | return PropositionGestionnaireDTO( |
947 | 948 | **dto_to_dict(proposition), |
@@ -975,12 +976,17 @@ def _load_dto_for_gestionnaire( |
975 | 976 | poursuite_de_cycle_a_specifier=poursuite_de_cycle_a_specifier, |
976 | 977 | poursuite_de_cycle=admission.cycle_pursuit if poursuite_de_cycle_a_specifier else '', |
977 | 978 | candidat_a_plusieurs_demandes=admission.has_several_admissions_in_progress, # from annotation |
978 | | - titre_acces='', # TODO |
979 | 979 | candidat_assimile=admission.accounting |
980 | 980 | and admission.accounting.assimilation_situation |
981 | 981 | and admission.accounting.assimilation_situation != TypeSituationAssimilation.AUCUNE_ASSIMILATION.name, |
982 | | - fraudeur_ares=False, # TODO |
983 | | - non_financable=False, # TODO, |
| 982 | + est_fraudeur=( |
| 983 | + checklist_actuelle['donnees_personnelles']['statut'] == ChoixStatutChecklist.GEST_BLOCAGE.name |
| 984 | + and checklist_actuelle['donnees_personnelles']['extra'].get('fraud') == '1' |
| 985 | + ) if checklist_actuelle else False, |
| 986 | + non_financable=( |
| 987 | + checklist_actuelle['financabilite']['statut'] == ChoixStatutChecklist.GEST_BLOCAGE.name |
| 988 | + and checklist_actuelle['financabilite']['extra'].get('to_be_completed') == '0' |
| 989 | + ) if checklist_actuelle else False, |
984 | 990 | est_inscription_tardive=admission.late_enrollment, |
985 | 991 | profil_soumis_candidat=( |
986 | 992 | ProfilCandidatDTO.from_dict( |
|
0 commit comments