Premier commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
namespace SIFinance.Modules.Achats.Dtos;
|
||||
|
||||
public record ContratEcheanceDto(int Id, DateOnly Date, decimal Montant, string Statut, string? JustificatifNom);
|
||||
|
||||
public record ContratDocumentDto(int Id, DateOnly Date, string Tag, string Nom);
|
||||
|
||||
// Rapprochement facture ↔ contrat : permet de voir, sur la fiche contrat, quelles factures
|
||||
// ont déjà été saisies contre lui (sans lien automatique aux échéances — le rapprochement
|
||||
// avec une échéance précise reste une vérification humaine).
|
||||
public record ContratFactureLieeDto(int Id, string Numero, decimal MontantTtc, DateOnly DateFacture, string Statut);
|
||||
|
||||
public record ContratDto(
|
||||
int Id,
|
||||
int FournisseurId,
|
||||
string Fournisseur,
|
||||
int? ServiceId,
|
||||
string? Service,
|
||||
int? CampusId,
|
||||
string? Campus,
|
||||
string? Reference,
|
||||
string Objet,
|
||||
DateOnly? DateSignature,
|
||||
DateOnly DateDebut,
|
||||
DateOnly DateFin,
|
||||
DateOnly? DateResiliation,
|
||||
string? MotifResiliation,
|
||||
decimal MontantTotal,
|
||||
string Periodicite,
|
||||
string Statut,
|
||||
List<ContratEcheanceDto> Echeances,
|
||||
List<ContratDocumentDto> Documents,
|
||||
List<ContratFactureLieeDto> FacturesLiees);
|
||||
|
||||
public record CreateContratEcheanceDto(DateOnly Date, decimal Montant);
|
||||
|
||||
public record CreateContratDto(
|
||||
int FournisseurId,
|
||||
int? ServiceId,
|
||||
int? CampusId,
|
||||
string Objet,
|
||||
string? Reference,
|
||||
DateOnly? DateSignature,
|
||||
DateOnly DateDebut,
|
||||
DateOnly DateFin,
|
||||
decimal MontantTotal,
|
||||
string Periodicite,
|
||||
List<CreateContratEcheanceDto> Echeances);
|
||||
|
||||
public record ChangerStatutContratDto(string Statut, DateOnly? DateResiliation, string? MotifResiliation, string? Commentaire);
|
||||
|
||||
public record ContratHistoriqueDto(int Id, string? AncienStatut, string NouveauStatut, string? Commentaire, string Utilisateur, DateTime DateAction);
|
||||
|
||||
public record UpdateEcheanceDto(DateOnly Date, decimal Montant, string Statut, string? JustificatifNom);
|
||||
|
||||
public record AddDocumentDto(string Tag, string Nom, DateOnly? Date);
|
||||
|
||||
public record UpdateDocumentDto(string Tag, DateOnly Date);
|
||||
Reference in New Issue
Block a user