Initial commit

This commit is contained in:
dahoud
2025-10-01 01:39:07 +00:00
commit b430bf3b96
826 changed files with 255287 additions and 0 deletions

53
types/stocks.ts Normal file
View File

@@ -0,0 +1,53 @@
/**
* 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;
}