Stock warehouses

Подсказать ячейки для прихода или расхода товара

Changed on

direction=in — куда класть: сначала ячейки с этим товаром той же партии (same_batch), затем с этим товаром (same_product), затем ближайшие пустые активные ячейки (empty). direction=out — откуда брать: «не размещено» первым, затем ячейки по сроку годности партии (без срока — последними), затем по порядку обхода; у партии со сроком shelf_life.status показывает, проходит ли она правило срока кабинета. Не больше 10 мест (ячеек и «не размещено»): у direction=out все партии места идут вместе с ним, и ячейка со многими партиями не вытесняет остальные (ERP-2055); вместимость ячеек не считается. В месте без ячеек список пуст.

get/api/v1/stock/warehouses/{id}/bins/suggest

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate
    • or HTTP bearer

Path parameters

id, string uuid required

Query parameters

product_id, string uuid required
direction, 'in' | 'out' required
batch_id, string uuid

in — партия, которую кладут; out — брать только эту партию

condition_id, string uuid

out — брать только это состояние

qty, string

out — сколько нужно взять: covers_qty показывает, хватает ли подсказки одной

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Подсказки ячеек

StockBinSuggestions required
warehouse_id, string uuid required
bins_mode, 'off' | 'soft' | 'strict' required
direction, 'in' | 'out' required
suggestions, StockBinSuggestion[] required

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision