Premier commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
namespace SIFinance.Modules.Achats.Dtos;
|
||||
|
||||
public record CreateJustificatifDto(
|
||||
string Libelle, string Nom,
|
||||
string? SharepointUrl, string? SharepointItemId, long? TailleOctets);
|
||||
|
||||
public record DemandeAchatCreateDto(
|
||||
int ServiceId,
|
||||
string Objet,
|
||||
string? Description,
|
||||
int? FournisseurId,
|
||||
string? FournisseurLibre,
|
||||
string? CategorieFournisseurLibre,
|
||||
int TypeDepenseId,
|
||||
decimal MontantHt,
|
||||
decimal TauxTva,
|
||||
DateOnly DatePrevisionnelle,
|
||||
int ModePaiementId,
|
||||
List<CreateJustificatifDto>? Justificatifs);
|
||||
|
||||
public record UpdateDemandeStatutDto(string Statut);
|
||||
|
||||
// Le workflow matériel utilise des actions, plutôt qu'un statut libre envoyé par le
|
||||
// navigateur : l'API conserve ainsi le contrôle des transitions et des rôles autorisés.
|
||||
public record WorkflowDemandeDto(
|
||||
string Action,
|
||||
string? Commentaire,
|
||||
string? DocumentNom = null,
|
||||
string? DocumentSharepointUrl = null,
|
||||
string? DocumentSharepointItemId = null,
|
||||
long? DocumentTailleOctets = null);
|
||||
|
||||
public record AjouterFactureDemandeDto(
|
||||
string Numero,
|
||||
decimal Montant,
|
||||
DateOnly DateFacture,
|
||||
DateOnly DateEcheance,
|
||||
string DocumentNom,
|
||||
string DocumentSharepointUrl,
|
||||
string DocumentSharepointItemId,
|
||||
long DocumentTailleOctets);
|
||||
Reference in New Issue
Block a user