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

fix(inventory): confirmReservation – Layering, Error-Semantik und FK-Bug

- MovementType-Ableitung via ReferenceType.toMovementType() in Domain Layer
- Doppelten Batch-Lookup in Stock.confirmReservation() eliminiert
- StockError.MovementCreationFailed statt RepositoryFailure für Domain-Fehler
- 204 No Content statt 200 OK (konsistent mit releaseReservation)
- Batches mit Menge 0 nicht mehr entfernen (FK stock_movements → stock_batches)
This commit is contained in:
Sebastian Frick 2026-02-25 23:13:04 +01:00
parent 0b6028b967
commit 74dc9a6981
9 changed files with 43 additions and 44 deletions

View file

@ -147,7 +147,7 @@ public final class InventoryScenario {
http("Reservierung bestätigen")
.post("/api/inventory/stocks/#{reserveStockId}/reservations/#{reservationId}/confirm")
.header("Authorization", "Bearer #{accessToken}")
.check(status().in(200, 404))
.check(status().in(204, 404))
).exec(session -> session.remove("reservationId"))
)
);