106 "LEDGER2_ACCOUNT_MAP: duplicate account id detected");
117 return meta ? meta->name : std::string_view{};
std::string_view ledger2_get_account_name_by_id(uint64_t account_id)
Definition: accounts.hpp:115
static constexpr size_t LEDGER2_ACCOUNT_MAP_SIZE
Definition: accounts.hpp:91
constexpr const Ledger2AccountMeta * ledger2_find_account_meta(uint64_t account_id)
Definition: accounts.hpp:108
constexpr std::array< Ledger2AccountMeta, 6 > LEDGER2_ACCOUNT_MAP
Хардкод-справочник плана счетов (MVP, 7 записей).
Definition: accounts.hpp:82
constexpr AccountType ledger2_get_account_type_by_id(uint64_t account_id)
Definition: accounts.hpp:120
AccountType
Тип бухгалтерского счёта.
Definition: accounts.hpp:20
Definition: accounts.hpp:94
constexpr bool account_ids_unique()
Definition: accounts.hpp:95
План счетов ledger2 (MVP) со смещением *1000.
Definition: accounts.hpp:51
static constexpr uint64_t TARGET_RECEIPTS
86 — Целевое финансирование (П)
Definition: accounts.hpp:60
static constexpr uint64_t FINANCIAL_INVESTMENTS
58 — Финансовые вложения (А)
Definition: accounts.hpp:56
static constexpr uint64_t INTANGIBLE_ASSETS
04 — Нематериальные активы (А)
Definition: accounts.hpp:53
static constexpr uint64_t NON_CURRENT_INVESTMENTS
08 — Вложения во внеоборотные активы (А)
Definition: accounts.hpp:54
static constexpr uint64_t BANK_ACCOUNT
51 — Расчётный счёт (А)
Definition: accounts.hpp:55
static constexpr uint64_t SHARE_FUND
80 — Паевой фонд (П)
Definition: accounts.hpp:59