mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 08:29:36 +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:
parent
0b6028b967
commit
74dc9a6981
9 changed files with 43 additions and 44 deletions
|
|
@ -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"))
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue