Initial commit
This commit is contained in:
53
types/stocks.ts
Normal file
53
types/stocks.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user