Dispose One

إتلاف قطعة واحدة من pending أو returning:

  • inventory_locations.on_hand -= 1 (في نفس الموقع)
  • inventory.status -> disposed (مع إبقاء loc_id كما هو)
  • تسجيل حركة 'dispose'
post/api/inventory/dispose-one

Request body

serial_idstring required

inventory._id (serial_id)

loc_id'pending' | 'returning' required
reasonstring nullable
userstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/inventory/dispose-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.