Core accounting

Записать решение по разрезу с даты «действует с» или поправить действующую запись истории

Changed on

С edit_open=true правится действующая запись истории, в том числе её начало переносится раньше — например, на начало года при переносе учёта из прежней системы. Без него новая запись начинается с valid_from и должна быть позже действующей. Обязательность отказывает, пока после valid_from есть проведённые документы без разреза. Продажа или закупка с датой раньше начала разреза получает отказ core.trade.dimension_disabled.

post/api/v1/core/accounting-dimensions/{key}/versions

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

key, 'company' | 'project' | 'department' | 'cfo' required

Headers

X-Tenant, string required

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

Request body

CoreAccountingDimensionVersionInput required
valid_from, string date required
enabled, boolean required
required, boolean required
edit_open, boolean

Поправить действующую запись истории вместо новой

Response

Разрез на сегодня с историей решений

CoreAccountingDimension required
key, 'company' | 'project' | 'department' | 'cfo' required
label, string required
description, string required
dictionary_key, string
tree, boolean required
always_on, boolean required
enabled, boolean required
required, boolean required
enabled_at, string date-time
on, string date

Дата, на которую показаны enabled и required

versions, CoreAccountingDimensionVersion[]

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