23 lines
939 B
C#
23 lines
939 B
C#
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);
|