mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 11:59:35 +01:00
feat(inventory): Bestandsposition anlegen (#4)
Stock-Aggregate mit MinimumLevel, MinimumShelfLife und StockDraft. Quantity/UnitOfMeasure nach shared.common verschoben für BC-übergreifende Nutzung. REST-Endpoint POST /api/inventory/stocks mit Duplikat-Prüfung, Validierung und Liquibase-Migration.
This commit is contained in:
parent
7079f12475
commit
5219c93dd1
43 changed files with 1340 additions and 18 deletions
|
|
@ -420,6 +420,22 @@ export interface paths {
|
|||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/inventory/stocks": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
get?: never;
|
||||
put?: never;
|
||||
post: operations["createStock"];
|
||||
delete?: never;
|
||||
options?: never;
|
||||
head?: never;
|
||||
patch?: never;
|
||||
trace?: never;
|
||||
};
|
||||
"/api/customers": {
|
||||
parameters: {
|
||||
query?: never;
|
||||
|
|
@ -1173,6 +1189,26 @@ export interface components {
|
|||
minTemperature?: string;
|
||||
maxTemperature?: string;
|
||||
};
|
||||
CreateStockRequest: {
|
||||
articleId: string;
|
||||
storageLocationId: string;
|
||||
minimumLevelAmount?: string;
|
||||
minimumLevelUnit?: string;
|
||||
/** Format: int32 */
|
||||
minimumShelfLifeDays?: number;
|
||||
};
|
||||
MinimumLevelResponse: {
|
||||
amount: number;
|
||||
unit: string;
|
||||
} | null;
|
||||
StockResponse: {
|
||||
id: string;
|
||||
articleId: string;
|
||||
storageLocationId: string;
|
||||
minimumLevel?: components["schemas"]["MinimumLevelResponse"];
|
||||
/** Format: int32 */
|
||||
minimumShelfLifeDays?: number | null;
|
||||
};
|
||||
CreateCustomerRequest: {
|
||||
name: string;
|
||||
/** @enum {string} */
|
||||
|
|
@ -2265,6 +2301,30 @@ export interface operations {
|
|||
};
|
||||
};
|
||||
};
|
||||
createStock: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
path?: never;
|
||||
cookie?: never;
|
||||
};
|
||||
requestBody: {
|
||||
content: {
|
||||
"application/json": components["schemas"]["CreateStockRequest"];
|
||||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK */
|
||||
200: {
|
||||
headers: {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"*/*": components["schemas"]["StockResponse"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
listCustomers: {
|
||||
parameters: {
|
||||
query?: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue