Checkpoint: Correction du formulaire d'édition et ajout de logs pour diagnostic.
Modifications apportées : - Le formulaire d'édition de facture pré-remplit maintenant correctement les valeurs existantes grâce à useEffect - Ajout de logs détaillés dans la route upload pour diagnostiquer le problème de stockage des fichiers PDF - Les valeurs ne sont plus perdues lors de l'édition d'une facture Note : Le problème d'export PDF (404) persiste car les fichiers ne sont pas stockés physiquement. Des logs ont été ajoutés pour identifier la cause lors du prochain upload.
This commit is contained in:
28
.manus/db/db-query-1767974417009.json
Normal file
28
.manus/db/db-query-1767974417009.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"query": "SELECT id, fileName, fileUrl, fileKey FROM sourceFiles ORDER BY createdAt DESC LIMIT 5;",
|
||||
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.bd4328423008 --database fo4DRyBgjsuiigFAgNLuWm --execute SELECT id, fileName, fileUrl, fileKey FROM sourceFiles ORDER BY createdAt DESC LIMIT 5;",
|
||||
"rows": [
|
||||
{
|
||||
"id": "60001",
|
||||
"fileName": "FACTURES FOURNISSEURS.pdf",
|
||||
"fileUrl": "/storage/2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf",
|
||||
"fileKey": "2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf"
|
||||
},
|
||||
{
|
||||
"id": "30001",
|
||||
"fileName": "FACTURES FOURNISSEURS.pdf",
|
||||
"fileUrl": "/storage/2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf",
|
||||
"fileKey": "2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf"
|
||||
},
|
||||
{
|
||||
"id": "1",
|
||||
"fileName": "FACTURES FOURNISSEURS.pdf",
|
||||
"fileUrl": "/storage/2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf",
|
||||
"fileKey": "2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "id\tfileName\tfileUrl\tfileKey\n60001\tFACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf\t2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf\n30001\tFACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf\t2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf\n1\tFACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf\t2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 56
|
||||
}
|
||||
31
.manus/db/db-query-1767975963635.json
Normal file
31
.manus/db/db-query-1767975963635.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"query": "SELECT id, fileName, fileKey, fileUrl, processingStatus FROM sourceFiles ORDER BY createdAt DESC LIMIT 3;",
|
||||
"command": "mysql --batch --raw --column-names --default-character-set=utf8mb4 --host gateway02.us-east-1.prod.aws.tidbcloud.com --port 4000 --user 4CrrYuB5tme73Qo.bd4328423008 --database fo4DRyBgjsuiigFAgNLuWm --execute SELECT id, fileName, fileKey, fileUrl, processingStatus FROM sourceFiles ORDER BY createdAt DESC LIMIT 3;",
|
||||
"rows": [
|
||||
{
|
||||
"id": "60001",
|
||||
"fileName": "FACTURES FOURNISSEURS.pdf",
|
||||
"fileKey": "2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf",
|
||||
"fileUrl": "/storage/2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf",
|
||||
"processingStatus": "completed"
|
||||
},
|
||||
{
|
||||
"id": "30001",
|
||||
"fileName": "FACTURES FOURNISSEURS.pdf",
|
||||
"fileKey": "2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf",
|
||||
"fileUrl": "/storage/2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf",
|
||||
"processingStatus": "completed"
|
||||
},
|
||||
{
|
||||
"id": "1",
|
||||
"fileName": "FACTURES FOURNISSEURS.pdf",
|
||||
"fileKey": "2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf",
|
||||
"fileUrl": "/storage/2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf",
|
||||
"processingStatus": "completed"
|
||||
}
|
||||
],
|
||||
"messages": [],
|
||||
"stdout": "id\tfileName\tfileKey\tfileUrl\tprocessingStatus\n60001\tFACTURES FOURNISSEURS.pdf\t2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-fmxuQN06-FACTURES FOURNISSEURS.pdf\tcompleted\n30001\tFACTURES FOURNISSEURS.pdf\t2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-0n3DLF9m-FACTURES FOURNISSEURS.pdf\tcompleted\n1\tFACTURES FOURNISSEURS.pdf\t2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf\t/storage/2026-01/1-FSrFmQSC-FACTURES FOURNISSEURS.pdf\tcompleted\n",
|
||||
"stderr": "",
|
||||
"execution_time_ms": 48
|
||||
}
|
||||
Reference in New Issue
Block a user