Finance accounts

Объединить статью с другой и удалить её

Changed on

Переносит все операции статьи {id} на статью target_id перепроведением документов (сторно, документы те же) и удаляет статью {id}. Зависимые разнесения, зачёты и авансы перепроводятся в той же транзакции; настройки (плановые платежи, правила разноски, правила схемы проводок, маршруты согласования) переезжают на target_id. Итоги регистров по обеим статьям не меняются. Только статьи одного вида и стороны, не системная. Статья продаж и закупок (заказ и операция) переносится вместе с ними. Отказ — закрытый период, больше 500 документов, конфликт настроек — ничего не меняет.

post/api/v1/finance/items/{id}/merge

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

Headers

X-Tenant, string required

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

Request body

FinanceItemMergeRequest required
target_id, string uuid required

Response

Статьи объединены

FinanceItemMergeResult required
preview, boolean
source_id, string uuid
source_name, string
target_id, string uuid
target_name, string
documents, object[]
months, object[]
settings, object[]
references, object[]
totals, object[]
deleted, boolean

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

    7 more changes in this revision