1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 11:59:35 +01:00

feat(inventory): Tui Inventur anlegen, starten, zählen, abschließen

This commit is contained in:
Sebastian Frick 2026-03-19 10:20:18 +01:00
parent ae95a0284f
commit 85a3f634fd
11 changed files with 804 additions and 1 deletions

View file

@ -18,6 +18,7 @@ export * from './customer';
export * from './inventory';
export * from './production';
export * from './country';
export * from './inventory-count';
// Re-export generated types for advanced usage
export type { components, paths } from './generated/api';

View file

@ -0,0 +1,36 @@
/**
* Inventory Count types (manual not in OpenAPI spec)
*/
export type InventoryCountStatus = 'OPEN' | 'COUNTING' | 'COMPLETED' | 'CANCELLED';
export interface CountItemDTO {
id: string;
articleId: string;
expectedQuantityAmount: string;
expectedQuantityUnit: string;
actualQuantityAmount: string | null;
actualQuantityUnit: string | null;
deviation: string | null;
}
export interface InventoryCountDTO {
id: string;
storageLocationId: string;
countDate: string;
initiatedBy: string;
completedBy: string | null;
status: InventoryCountStatus;
createdAt: string;
countItems: CountItemDTO[];
}
export interface CreateInventoryCountRequest {
storageLocationId: string;
countDate: string;
}
export interface RecordCountItemRequest {
actualQuantityAmount: string;
actualQuantityUnit: string;
}