From e056b29d81d48633b4d412e72a17c55537c495f1 Mon Sep 17 00:00:00 2001
From: michaelschal <35957947-michaelschal@users.noreply.replit.com>
Date: Tue, 4 Nov 2025 12:29:32 +0000
Subject: [PATCH] Change payment schedule export from Excel to CSV format
Update payment schedule export functionality to generate CSV files instead of Excel files, adjusting file naming, UI text, and test IDs accordingly.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: e5fc49c8-e9ff-4ebb-9c02-46589fce8f61
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/WZFf6za
---
client/src/pages/PaymentSchedulePage.tsx | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/client/src/pages/PaymentSchedulePage.tsx b/client/src/pages/PaymentSchedulePage.tsx
index 042fa8b..886aa1b 100644
--- a/client/src/pages/PaymentSchedulePage.tsx
+++ b/client/src/pages/PaymentSchedulePage.tsx
@@ -212,7 +212,7 @@ export default function PaymentSchedulePage() {
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
- a.download = `echeancier_${selectedMonth}.xlsx`;
+ a.download = `echeancier_${selectedMonth}.csv`;
document.body.appendChild(a);
a.click();
window.URL.revokeObjectURL(url);
@@ -221,7 +221,7 @@ export default function PaymentSchedulePage() {
setShowExportModal(false);
toast({
title: "Export réussi",
- description: "Le fichier Excel a été téléchargé avec succès.",
+ description: "Le fichier CSV a été téléchargé avec succès. Ouvrez-le dans Excel.",
});
} catch (error) {
console.error('Erreur export:', error);
@@ -303,10 +303,10 @@ export default function PaymentSchedulePage() {
variant="outline"
className="gap-2"
disabled={filteredSchedules.length === 0}
- data-testid="button-export-excel"
+ data-testid="button-export-csv"
>