feature/21-pdf-echeance #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/21-pdf-echeance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nouvel endpoint: GET /api/rent-dues/{id}/notice Fonctionnalité: - Cherche dans GED si PDF RENT_DUE_NOTICE existe pour l'échéance - Si trouvé: retourne PDF depuis GED (DocumentService.downloadLatestVersion) - Si non trouvé: génère à la volée avec RentDueService.generateRentDueNoticePDF() - Utile pour anciennes échéances créées avant implémentation workflow Avantages: - Réutilise documents GED existants (évite duplicatas) - Support backward compatibility pour anciennes échéances - Téléchargement direct sans passer par workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>Frontend - Modifications: 1. rentDueService.js: Méthode downloadNotice(id) avec téléchargement PDF 2. CrudTable.jsx: Support customActions pour actions personnalisées 3. RentDueList.jsx: Bouton téléchargement avec spinner et gestion erreur Fonctionnalités: - Icône Download dans liste échéances - Appel GET /api/rent-dues/{id}/notice - Téléchargement automatique du PDF - Feedback utilisateur (spinner pendant téléchargement) - Gestion erreurs avec alert() UX: - Bouton désactivé pendant téléchargement - Spinner remplace icône pendant chargement - Tooltip explicatif "Télécharger l'avis d'échéance" - Couleur "info" pour distinguer des actions Edit/Delete 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>Bug critique: WorkflowEngineImpl n'ajoutait pas RentDueCreatedEvent au contexte du workflow, causant échec de LoadRentDueDataStep. Fix: - Ajout case RentDueCreatedEvent dans enrichissement du contexte - context.put("event", triggerEvent) pour LoadRentDueDataStep - Pattern cohérent avec PaymentSavedEvent existant Impact: - Workflow RentDueToGed fonctionne maintenant de bout en bout - PDF généré automatiquement et stocké dans GED - Tests confirmés: RentDue#9 → Document#136 (avis_echeance_*.pdf) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>