136 "LEDGER2_ACCOUNT_MAP: duplicate account id detected");
147 return meta ? meta->name : std::string_view{};
std::string_view ledger2_get_account_name_by_id(uint64_t account_id)
Definition: accounts.hpp:145
static constexpr size_t LEDGER2_ACCOUNT_MAP_SIZE
Definition: accounts.hpp:121
constexpr std::array< Ledger2AccountMeta, 10 > LEDGER2_ACCOUNT_MAP
Хардкод-справочник плана счетов (MVP, 10 записей).
Definition: accounts.hpp:108
constexpr const Ledger2AccountMeta * ledger2_find_account_meta(uint64_t account_id)
Definition: accounts.hpp:138
constexpr AccountType ledger2_get_account_type_by_id(uint64_t account_id)
Definition: accounts.hpp:150
AccountType
Тип бухгалтерского счёта.
Definition: accounts.hpp:20
Definition: accounts.hpp:124
constexpr bool account_ids_unique()
Definition: accounts.hpp:125
План счетов ledger2 (MVP) со смещением *1000.
Definition: accounts.hpp:69
static constexpr uint64_t TARGET_RECEIPTS
86 — Целевое финансирование (П)
Definition: accounts.hpp:83
static constexpr uint64_t FINANCIAL_INVESTMENTS
58 — Финансовые вложения (А)
Definition: accounts.hpp:75
static constexpr uint64_t INTANGIBLE_ASSETS
04 — Нематериальные активы (А)
Definition: accounts.hpp:71
static constexpr uint64_t PARTICIPANT_SETTLEMENTS
76 — Расчёты с пайщиками (А-П): суспенс регистрационного взноса до решения совета
Definition: accounts.hpp:78
static constexpr uint64_t TAX_SETTLEMENTS
68 — Расчёты по налогам и сборам (П): удержанный НДФЛ до перечисления в бюджет
Definition: accounts.hpp:81
static constexpr uint64_t OTHER_INCOME_EXPENSES
91 — Прочие доходы и расходы (А/П; транзит на выдаче и при утилизации скоропорта)
Definition: accounts.hpp:86
static constexpr uint64_t NON_CURRENT_INVESTMENTS
08 — Вложения во внеоборотные активы (А)
Definition: accounts.hpp:72
static constexpr uint64_t BANK_ACCOUNT
51 — Расчётный счёт (А)
Definition: accounts.hpp:74
static constexpr uint64_t MATERIALS
10 — Материалы (А; склад имущества на КУ, per-КУ субсчета)
Definition: accounts.hpp:73
static constexpr uint64_t SHARE_FUND
80 — Паевой фонд (П)
Definition: accounts.hpp:82