diff --git a/backend/src/routes/referentiel.js b/backend/src/routes/referentiel.js index 6f89e8b..b14053f 100644 --- a/backend/src/routes/referentiel.js +++ b/backend/src/routes/referentiel.js @@ -477,6 +477,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { const fields = [ p.url || null, p.domiciliation || 'france', p.fiscalite || 'flat_tax', p.taux_fiscalite_locale ?? null, p.type_produit_fiscal || '2TT', + p.methode_remboursement || 'portefeuille', p.type_pret_defaut ?? null, p.freq_interets_defaut ?? null, p.description ?? null, p.annee_creation ?? null, p.investisseurs_types ?? null, p.regulateur ?? null, p.numero_licence ?? null, p.is_regule ? 1 : 0, @@ -494,6 +495,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { db.prepare(` UPDATE plateformes_referentiel SET url=?, domiciliation=?, fiscalite=?, taux_fiscalite_locale=?, type_produit_fiscal=?, + methode_remboursement=?, type_pret_defaut=?, freq_interets_defaut=?, description=?, annee_creation=?, investisseurs_types=?, regulateur=?, numero_licence=?, is_regule=?, pays_inscription=?, pays_siege=?, pays_operation=?, @@ -511,6 +513,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { const r = db.prepare(` INSERT INTO plateformes_referentiel (nom, url, domiciliation, fiscalite, taux_fiscalite_locale, type_produit_fiscal, + methode_remboursement, type_pret_defaut, freq_interets_defaut, description, annee_creation, investisseurs_types, regulateur, numero_licence, is_regule, pays_inscription, pays_siege, pays_operation, @@ -519,7 +522,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => { garantie_rachat, statistiques_publiques, bonus_inscription, marche_secondaire, investissement_auto, url_trustpilot, url_linkedin, logo_filename, icone_filename, updated_at) - VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,datetime('now')) + VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,datetime('now')) `).run(p.nom, ...fields); refId = r.lastInsertRowid; created++;