Spaces:
Running
Running
Update src/modules/loans_engine.py
Browse files
src/modules/loans_engine.py
CHANGED
|
@@ -432,7 +432,7 @@ def show_loans_engine(client, sheet_name):
|
|
| 432 |
st.markdown("---")
|
| 433 |
st.subheader("Configuration")
|
| 434 |
|
| 435 |
-
col_motif, col_type = st.columns(
|
| 436 |
with col_motif:
|
| 437 |
# NOUVEAU : MOTIF
|
| 438 |
motif = st.selectbox(
|
|
@@ -459,7 +459,9 @@ def show_loans_engine(client, sheet_name):
|
|
| 459 |
)
|
| 460 |
with col_type:
|
| 461 |
type_pret = st.selectbox("Type de remboursement", ["In Fine", "Mensuel - Intérêts", "Mensuel - Constant", "Hebdomadaire", "Personnalisé"])
|
| 462 |
-
|
|
|
|
|
|
|
| 463 |
# Mapping Type
|
| 464 |
type_code_map = {"In Fine": "IN_FINE", "Mensuel - Intérêts": "MENSUEL_INTERETS", "Mensuel - Constant": "MENSUEL_CONSTANT", "Hebdomadaire": "HEBDOMADAIRE", "Personnalisé": "PERSONNALISE"}
|
| 465 |
type_code = type_code_map[type_pret]
|
|
|
|
| 432 |
st.markdown("---")
|
| 433 |
st.subheader("Configuration")
|
| 434 |
|
| 435 |
+
col_motif, col_type, col_moyen = st.columns(3)
|
| 436 |
with col_motif:
|
| 437 |
# NOUVEAU : MOTIF
|
| 438 |
motif = st.selectbox(
|
|
|
|
| 459 |
)
|
| 460 |
with col_type:
|
| 461 |
type_pret = st.selectbox("Type de remboursement", ["In Fine", "Mensuel - Intérêts", "Mensuel - Constant", "Hebdomadaire", "Personnalisé"])
|
| 462 |
+
with col_moyen:
|
| 463 |
+
# Correction : Définition de la variable moyen_transfert
|
| 464 |
+
moyen_transfert = st.selectbox("Moyen de transfert", ["Wave", "Orange Money", "Virement"])
|
| 465 |
# Mapping Type
|
| 466 |
type_code_map = {"In Fine": "IN_FINE", "Mensuel - Intérêts": "MENSUEL_INTERETS", "Mensuel - Constant": "MENSUEL_CONSTANT", "Hebdomadaire": "HEBDOMADAIRE", "Personnalisé": "PERSONNALISE"}
|
| 467 |
type_code = type_code_map[type_pret]
|