Premier commit

This commit is contained in:
2026-09-11 14:55:41 +02:00
commit 8ed04aae89
134 changed files with 36627 additions and 0 deletions
@@ -0,0 +1,22 @@
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<int> FactureIds,
List<string> 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<int> FactureIds, int ModePaiementId, DateOnly DatePaiement, string Reference, string Statut, bool Rapproche);
public record UpdatePaiementDto(int ModePaiementId, DateOnly DatePaiement, string Reference, string Statut, bool Rapproche);