Inventory Consume One

يستهلك قطعة واحدة سبق حجزها من نفس الموقع:

  • inventory_locations: reserved -= 1
  • inventory: يختار سجلًا مطابقًا (loc_id نفسه، status='on_hand', sku_code, inventory_id) ويجعله consumed
  • يُرجع _id للسجل المستهلك
post/api/inventory/consume-one

Request body

sku_codestring required
inventory_idstring required
serial_idstring required
order_product_idstring required
loc_idstring required
reasonstring nullable
userstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/inventory/consume-one:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.