Stock batches

Разобрать серии заведённых партий

Changed on

Разовая чистка серий кабинета (ERP-2199): номер серии каждой проведённой партии приводится к виду, который даёт разбор при приходе, — без «от … до …», дата изготовления в номере записана ДДММГГ; выпуск и срок из текста ложатся только в пустые поля. dry_run: true ничего не меняет и показывает, что поменяется. Повтор ничего не меняет. Каждая поменянная партия получает строку истории с причиной system:series_cleanup и исходным текстом в before. Партия в закрытом периоде не меняется: skipped = batch_period_closed.

post/api/v1/stock/batches/series-cleanup

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

Headers

X-Tenant, string required

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

Request body

object required
dry_run, boolean

Только показать, что поменяется

Response

Отчёт чистки серий

StockSeriesCleanupReport required
dry_run, boolean required
checked, integer required

Партий с серией проверено

changed, integer required

Партий поменяно (или поменяется при проверке)

skipped, integer required

Партий не поменяно из-за закрытого периода

changes, StockSeriesCleanupChange[] required

Changes

    • info

      added the optional property changes/items/after/customs_number to the response with the status

    • info

      added the optional property changes/items/after/origin_country_code to the response with the status

    • info

      added the optional property changes/items/before/customs_number to the response with the status

    1 more change in this revision