Spaces:
Sleeping
Sleeping
Commit ·
82ac105
1
Parent(s): eae2468
correction update fiche etudiant et fiche entreprise
Browse files
app/repositories/airtable_repository.py
CHANGED
|
@@ -479,28 +479,40 @@ class AirtableRepository:
|
|
| 479 |
"NOM dusage": informations.nom_usage,
|
| 480 |
"Sexe": informations.sexe, # Déjà au bon format: "Féminin" ou "Masculin"
|
| 481 |
"Date de naissance": informations.date_naissance.isoformat(),
|
| 482 |
-
"Nationalité":
|
| 483 |
"Commune de naissance": informations.commune_naissance,
|
| 484 |
"Département": informations.departement,
|
| 485 |
-
"Adresse lieu dexécution du contrat": informations.adresse_residence + ", " + informations.
|
| 486 |
-
"Code postal ":
|
| 487 |
"ville": informations.ville,
|
| 488 |
"E-mail": informations.email,
|
| 489 |
"Téléphone": informations.telephone,
|
| 490 |
"Nom Représentant légal principal": informations.nom_representant_legal,
|
| 491 |
-
"
|
|
|
|
|
|
|
|
|
|
| 492 |
"Voie Représentant légal Principal": informations.voie_representant_legal,
|
| 493 |
"Complémet Représentant légal Principal": informations.complement_adresse_legal,
|
| 494 |
"Code postal Représentant légal Principal": informations.code_postal_legal,
|
| 495 |
"Commune Représentant légal Principal": informations.commune_legal,
|
| 496 |
-
"
|
| 497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
"NIR": informations.nir,
|
| 499 |
-
"Dernier diplôme ou titre préparé":
|
| 500 |
"Dernière classe / année suivie": informations.derniere_classe,
|
| 501 |
"Intitulé précis du dernier diplôme ou titre préparé": informations.intitulePrecisDernierDiplome,
|
| 502 |
-
"BAC":
|
| 503 |
-
"Situation avant le contrat":
|
| 504 |
"Régime social": informations.regime_social,
|
| 505 |
"Déclare être inscrits sur la liste des sportifs de haut niveau": "Oui" if informations.declare_inscription_sportif_haut_niveau else "Non",
|
| 506 |
"Déclare avoir un projet de création ou de reprise dentreprise": "Oui" if informations.declare_avoir_projet_creation_reprise_entreprise else "Non",
|
|
@@ -1097,12 +1109,58 @@ class EntrepriseRepository:
|
|
| 1097 |
airtable_data["Poste occupé"] = fiche.contrat.poste_occupe
|
| 1098 |
if fiche.contrat.lieu_execution:
|
| 1099 |
airtable_data["Lieu dexécution du contrat (si différent du siège)"] = fiche.contrat.lieu_execution
|
| 1100 |
-
if fiche.contrat.
|
| 1101 |
-
airtable_data["Pourcentage du SMIC"] = fiche.contrat.
|
| 1102 |
-
if fiche.contrat.
|
| 1103 |
-
airtable_data["SMIC"] = fiche.contrat.
|
| 1104 |
-
if fiche.contrat.
|
| 1105 |
-
airtable_data["
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1106 |
# Nouveaux champs du contrat
|
| 1107 |
if fiche.contrat.date_conclusion:
|
| 1108 |
airtable_data["Date de conclusion"] = fiche.contrat.date_conclusion.isoformat()
|
|
|
|
| 479 |
"NOM dusage": informations.nom_usage,
|
| 480 |
"Sexe": informations.sexe, # Déjà au bon format: "Féminin" ou "Masculin"
|
| 481 |
"Date de naissance": informations.date_naissance.isoformat(),
|
| 482 |
+
"Nationalité": informations.nationalite,
|
| 483 |
"Commune de naissance": informations.commune_naissance,
|
| 484 |
"Département": informations.departement,
|
| 485 |
+
"Adresse lieu dexécution du contrat": informations.adresse_residence + ", " + str(informations.code_postal) + ", " + informations.ville,
|
| 486 |
+
"Code postal ":informations.code_postal,
|
| 487 |
"ville": informations.ville,
|
| 488 |
"E-mail": informations.email,
|
| 489 |
"Téléphone": informations.telephone,
|
| 490 |
"Nom Représentant légal principal": informations.nom_representant_legal,
|
| 491 |
+
"Prénom Représentant légal principal": informations.prenom_representant_legal,
|
| 492 |
+
"Numéro Représentant légal principal": informations.numero_legal,
|
| 493 |
+
"Lien de parenté": informations.lien_parente_legal,
|
| 494 |
+
"Numero adresse Représentant légal": informations.numero_adress_legal,
|
| 495 |
"Voie Représentant légal Principal": informations.voie_representant_legal,
|
| 496 |
"Complémet Représentant légal Principal": informations.complement_adresse_legal,
|
| 497 |
"Code postal Représentant légal Principal": informations.code_postal_legal,
|
| 498 |
"Commune Représentant légal Principal": informations.commune_legal,
|
| 499 |
+
"email Représentant légal principal": informations.courriel_legal,
|
| 500 |
+
"Nom Représentant légal secondaire": informations.nom_representant_legal2,
|
| 501 |
+
"Prénom Représentant légal secondaire": informations.prenom_representant_legal2,
|
| 502 |
+
"Numéro Représentant légal secondaire": informations.numero_legal2,
|
| 503 |
+
"Lien de parenté Représentant légal secondaire": informations.lien_parente_legal2,
|
| 504 |
+
"N° adresse Représentant légal secondaire": informations.numero_adress_legal2,
|
| 505 |
+
"Voie Représentant légal secondaire": informations.voie_representant_legal2,
|
| 506 |
+
"Complément Représentant légal secondaire": informations.complement_adresse_legal2,
|
| 507 |
+
"Code postal Représentant légal secondaire": informations.code_postal_legal2,
|
| 508 |
+
"Commune Représentant légal secondaire": informations.commune_legal2,
|
| 509 |
+
"email Représentant légal secondaire": informations.courriel_legal2,
|
| 510 |
"NIR": informations.nir,
|
| 511 |
+
"Dernier diplôme ou titre préparé": informations.dernier_diplome_prepare,
|
| 512 |
"Dernière classe / année suivie": informations.derniere_classe,
|
| 513 |
"Intitulé précis du dernier diplôme ou titre préparé": informations.intitulePrecisDernierDiplome,
|
| 514 |
+
"BAC": informations.bac,
|
| 515 |
+
"Situation avant le contrat": informations.situation,
|
| 516 |
"Régime social": informations.regime_social,
|
| 517 |
"Déclare être inscrits sur la liste des sportifs de haut niveau": "Oui" if informations.declare_inscription_sportif_haut_niveau else "Non",
|
| 518 |
"Déclare avoir un projet de création ou de reprise dentreprise": "Oui" if informations.declare_avoir_projet_creation_reprise_entreprise else "Non",
|
|
|
|
| 1109 |
airtable_data["Poste occupé"] = fiche.contrat.poste_occupe
|
| 1110 |
if fiche.contrat.lieu_execution:
|
| 1111 |
airtable_data["Lieu dexécution du contrat (si différent du siège)"] = fiche.contrat.lieu_execution
|
| 1112 |
+
if fiche.contrat.pourcentage_smic1:
|
| 1113 |
+
airtable_data["Pourcentage du SMIC 1"] = fiche.contrat.pourcentage_smic1
|
| 1114 |
+
if fiche.contrat.smic1:
|
| 1115 |
+
airtable_data["SMIC 1"] = fiche.contrat.smic1
|
| 1116 |
+
if fiche.contrat.pourcentage_smic2:
|
| 1117 |
+
airtable_data["Pourcentage smic 2"] = fiche.contrat.pourcentage_smic2
|
| 1118 |
+
if fiche.contrat.smic2:
|
| 1119 |
+
airtable_data["smic 2"] = fiche.contrat.smic2
|
| 1120 |
+
if fiche.contrat.pourcentage_smic3:
|
| 1121 |
+
airtable_data["Pourcentage smic 3"] = fiche.contrat.pourcentage_smic3
|
| 1122 |
+
if fiche.contrat.smic3:
|
| 1123 |
+
airtable_data["smic 3"] = fiche.contrat.smic3
|
| 1124 |
+
if fiche.contrat.pourcentage_smic4:
|
| 1125 |
+
airtable_data["Pourcentage smic 4"] = fiche.contrat.pourcentage_smic4
|
| 1126 |
+
if fiche.contrat.smic4:
|
| 1127 |
+
airtable_data["smic 4"] = fiche.contrat.smic4
|
| 1128 |
+
if fiche.contrat.montant_salaire_brut1 is not None:
|
| 1129 |
+
airtable_data["Salaire brut mensuel 1"] = fiche.contrat.montant_salaire_brut1
|
| 1130 |
+
if fiche.contrat.montant_salaire_brut2 is not None:
|
| 1131 |
+
airtable_data["Salaire brut mensuel 2"] = fiche.contrat.montant_salaire_brut2
|
| 1132 |
+
if fiche.contrat.montant_salaire_brut3 is not None:
|
| 1133 |
+
airtable_data["Salaire brut mensuel 3"] = fiche.contrat.montant_salaire_brut3
|
| 1134 |
+
if fiche.contrat.montant_salaire_brut4 is not None:
|
| 1135 |
+
airtable_data["Salaire brut mensuel 4"] = fiche.contrat.montant_salaire_brut4
|
| 1136 |
+
if fiche.contrat.date_debut_2periode_1er_annee:
|
| 1137 |
+
airtable_data["date_debut_2periode_1er_annee"] = fiche.contrat.date_debut_2periode_1er_annee.isoformat()
|
| 1138 |
+
if fiche.contrat.date_fin_2periode_1er_annee:
|
| 1139 |
+
airtable_data["date_fin_2periode_1er_annee"] = fiche.contrat.date_fin_2periode_1er_annee.isoformat()
|
| 1140 |
+
if fiche.contrat.date_debut_1periode_2eme_annee:
|
| 1141 |
+
airtable_data["date_debut_1periode_2eme_annee"] = fiche.contrat.date_debut_1periode_2eme_annee.isoformat()
|
| 1142 |
+
if fiche.contrat.date_fin_1periode_2eme_annee:
|
| 1143 |
+
airtable_data["date_fin_1periode_2eme_annee"] = fiche.contrat.date_fin_1periode_2eme_annee.isoformat()
|
| 1144 |
+
if fiche.contrat.date_debut_2periode_2eme_annee:
|
| 1145 |
+
airtable_data["date_debut_2periode_2eme_annee"] = fiche.contrat.date_debut_2periode_2eme_annee.isoformat()
|
| 1146 |
+
if fiche.contrat.date_fin_2periode_2eme_annee:
|
| 1147 |
+
airtable_data["date_fin_2periode_2eme_annee"] = fiche.contrat.date_fin_2periode_2eme_annee.isoformat()
|
| 1148 |
+
if fiche.contrat.date_debut_1periode_3eme_annee:
|
| 1149 |
+
airtable_data["date_debut_1periode_3eme_annee"] = fiche.contrat.date_debut_1periode_3eme_annee.isoformat()
|
| 1150 |
+
if fiche.contrat.date_fin_1periode_3eme_annee:
|
| 1151 |
+
airtable_data["date_fin_1periode_3eme_annee"] = fiche.contrat.date_fin_1periode_3eme_annee.isoformat()
|
| 1152 |
+
if fiche.contrat.date_debut_2periode_3eme_annee:
|
| 1153 |
+
airtable_data["date_debut_2periode_3eme_annee"] = fiche.contrat.date_debut_2periode_3eme_annee.isoformat()
|
| 1154 |
+
if fiche.contrat.date_fin_2periode_3eme_annee:
|
| 1155 |
+
airtable_data["date_fin_2periode_3eme_annee"] = fiche.contrat.date_fin_2periode_3eme_annee.isoformat()
|
| 1156 |
+
if fiche.contrat.date_debut_1periode_4eme_annee:
|
| 1157 |
+
airtable_data["date_debut_1periode_4eme_annee"] = fiche.contrat.date_debut_1periode_4eme_annee.isoformat()
|
| 1158 |
+
if fiche.contrat.date_fin_1periode_4eme_annee:
|
| 1159 |
+
airtable_data["date_fin_1periode_4eme_annee"] = fiche.contrat.date_fin_1periode_4eme_annee.isoformat()
|
| 1160 |
+
if fiche.contrat.date_debut_2periode_4eme_annee:
|
| 1161 |
+
airtable_data["date_debut_2periode_4eme_annee"] = fiche.contrat.date_debut_2periode_4eme_annee.isoformat()
|
| 1162 |
+
if fiche.contrat.date_fin_2periode_4eme_annee:
|
| 1163 |
+
airtable_data["date_fin_2periode_4eme_annee"] = fiche.contrat.date_fin_2periode_4eme_annee.isoformat()
|
| 1164 |
# Nouveaux champs du contrat
|
| 1165 |
if fiche.contrat.date_conclusion:
|
| 1166 |
airtable_data["Date de conclusion"] = fiche.contrat.date_conclusion.isoformat()
|