AppSAV/MauiAppStock/Models/MouvementStock.cs
Yann ASTIER 8d8578a059 Ajout :
- Suivi des mouvements stocks (table, crud, vue)
- Placeholder pour picker fournisseur (vue)
- Historique des mouvements stock (vue)
2025-04-08 11:21:14 +02:00

32 lines
790 B
C#

using SQLite;
namespace MauiAppStock.Models
{
public class MouvementStock
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
public int PieceId { get; set; }
public DateTime DateMouvement { get; set; }
public TypeMouvement Type { get; set; }
public int Quantite { get; set; } // Number of parts moved
public string? Commentaire { get; set; }
[Ignore]
public string NomPiece { get; set; }
[Ignore]
public bool HasComment => !string.IsNullOrWhiteSpace(Commentaire);
}
public enum TypeMouvement
{
EntreeStock, // Parts entering stock (purchase)
SortieReparation // Parts used for repair
}
}