Files
btpxpress-frontend/types/stocks.ts
2025-10-01 01:39:07 +00:00

53 lines
930 B
TypeScript

/**
* Types pour la gestion des stocks
*/
export interface Stock {
id: string;
nom: string;
description?: string;
quantite: number;
quantiteMin: number;
quantiteMax: number;
unite: string;
prixUnitaire: number;
dateCreation: string;
dateModification: string;
actif: boolean;
fournisseur?: {
id: string;
nom: string;
};
categorie?: {
id: string;
nom: string;
};
}
export interface StockMovement {
id: string;
type: 'ENTREE' | 'SORTIE';
quantite: number;
dateMovement: string;
motif: string;
utilisateur: string;
chantier?: {
id: string;
nom: string;
};
}
export interface StockAlert {
id: string;
type: 'STOCK_BAS' | 'STOCK_CRITIQUE' | 'PEREMPTION';
message: string;
dateCreation: string;
traite: boolean;
}
export interface StockStats {
totalArticles: number;
valeurTotale: number;
articlesEnRupture: number;
articlesEnAlerte: number;
}