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:
parent
ae95a0284f
commit
85a3f634fd
11 changed files with 804 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
36
frontend/packages/types/src/inventory-count.ts
Normal file
36
frontend/packages/types/src/inventory-count.ts
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue