namespace SIFinance.Modules.Finance.Dtos; // Un "paiement" côté UI peut regrouper plusieurs factures d'un même fournisseur. // La table fin.paiements est 1 ligne par facture : on regroupe par Reference pour l'affichage. public record PaiementGroupeDto( string Reference, int FournisseurId, string Fournisseur, List FactureIds, List FactureNumeros, decimal MontantTotal, int ModePaiementId, string ModePaiement, DateOnly DatePaiement, string Statut, bool Rapproche); public record FactureDisponibleDto(int Id, int FournisseurId, string Fournisseur, string Numero, decimal Montant, DateOnly DateFacture); public record CreatePaiementDto(List FactureIds, int ModePaiementId, DateOnly DatePaiement, string Reference, string Statut, bool Rapproche); public record UpdatePaiementDto(int ModePaiementId, DateOnly DatePaiement, string Reference, string Statut, bool Rapproche);