Premier commit
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user