Update order item when quantity is incremented
Closed this issue · 0 comments
alcaprar commented
Add new endpoint to increment quantity of an order_item
. This should:
- check some preconditions:
- that there is enough
current_availability
in theproduct_sale
item ✔️
- that there is enough
- atomically: 🚧
- increment the
quanity
in theorder_item
✔️ - decrement by one the
current_availability
of theproduct_sale
✔️
- increment the
- return the updated
order
🚧