mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 12:19:35 +01:00
feat(tui): Produktionschargen und Bestandsverwaltung in TUI einbauen
Chargen: Liste mit Statusfilter, Planen, Starten, Verbrauch erfassen, Abschließen und Stornieren. Bestände: Liste, Anlegen, Detailansicht mit Chargen sperren/entsperren/entfernen. Types, API-Client, Hooks, Navigation und Screens für beide Bounded Contexts vollständig ergänzt.
This commit is contained in:
parent
b2b3b59ce9
commit
5fe0dfc139
21 changed files with 2385 additions and 31 deletions
|
|
@ -24,6 +24,7 @@ export { createArticlesResource } from './resources/articles.js';
|
|||
export { createCustomersResource } from './resources/customers.js';
|
||||
export { createStorageLocationsResource } from './resources/storage-locations.js';
|
||||
export { createRecipesResource } from './resources/recipes.js';
|
||||
export { createBatchesResource } from './resources/batches.js';
|
||||
export { createStocksResource } from './resources/stocks.js';
|
||||
export {
|
||||
ApiError,
|
||||
|
|
@ -90,6 +91,20 @@ export type {
|
|||
AddProductionStepRequest,
|
||||
StockBatchDTO,
|
||||
AddStockBatchRequest,
|
||||
BatchDTO,
|
||||
BatchSummaryDTO,
|
||||
ConsumptionDTO,
|
||||
PlanBatchRequest,
|
||||
CompleteBatchRequest,
|
||||
RecordConsumptionRequest,
|
||||
CancelBatchRequest,
|
||||
StockDTO,
|
||||
CreateStockRequest,
|
||||
CreateStockResponse,
|
||||
UpdateStockRequest,
|
||||
RemoveStockBatchRequest,
|
||||
BlockStockBatchRequest,
|
||||
MinimumLevelDTO,
|
||||
} from '@effigenix/types';
|
||||
|
||||
// Resource types (runtime, stay in resource files)
|
||||
|
|
@ -115,8 +130,10 @@ export type {
|
|||
export { STORAGE_TYPE_LABELS } from './resources/storage-locations.js';
|
||||
export type { RecipesResource, RecipeType, RecipeStatus, UoM } from './resources/recipes.js';
|
||||
export { RECIPE_TYPE_LABELS, UOM_VALUES, UOM_LABELS } from './resources/recipes.js';
|
||||
export type { StocksResource, BatchType } from './resources/stocks.js';
|
||||
export { BATCH_TYPE_LABELS } from './resources/stocks.js';
|
||||
export type { BatchesResource, BatchStatus } from './resources/batches.js';
|
||||
export { BATCH_STATUS_LABELS } from './resources/batches.js';
|
||||
export type { StocksResource, BatchType, StockBatchStatus, StockFilter } from './resources/stocks.js';
|
||||
export { BATCH_TYPE_LABELS, STOCK_BATCH_STATUS_LABELS } from './resources/stocks.js';
|
||||
|
||||
import { createApiClient } from './client.js';
|
||||
import { createAuthResource } from './resources/auth.js';
|
||||
|
|
@ -128,6 +145,7 @@ import { createArticlesResource } from './resources/articles.js';
|
|||
import { createCustomersResource } from './resources/customers.js';
|
||||
import { createStorageLocationsResource } from './resources/storage-locations.js';
|
||||
import { createRecipesResource } from './resources/recipes.js';
|
||||
import { createBatchesResource } from './resources/batches.js';
|
||||
import { createStocksResource } from './resources/stocks.js';
|
||||
import type { TokenProvider } from './token-provider.js';
|
||||
import type { ApiConfig } from '@effigenix/config';
|
||||
|
|
@ -152,6 +170,7 @@ export function createEffigenixClient(
|
|||
customers: createCustomersResource(axiosClient),
|
||||
storageLocations: createStorageLocationsResource(axiosClient),
|
||||
recipes: createRecipesResource(axiosClient),
|
||||
batches: createBatchesResource(axiosClient),
|
||||
stocks: createStocksResource(axiosClient),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue