#include <array>
#include <cstdint>
#include <string_view>
См. исходные тексты.
◆ ledger2_find_account_meta()
◆ ledger2_get_account_name_by_id()
| std::string_view ledger2_get_account_name_by_id |
( |
uint64_t |
account_id | ) |
|
|
inline |
◆ ledger2_get_account_type_by_id()
| constexpr AccountType ledger2_get_account_type_by_id |
( |
uint64_t |
account_id | ) |
|
|
inlineconstexpr |
◆ LEDGER2_ACCOUNT_MAP
Инициализатор= {{
}}
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
Хардкод-справочник плана счетов (MVP, 7 записей).
constexpr std::array + string_view — чтобы не было dynamic init при загрузке контракта и тип был полностью заморожен на этапе сборки.
◆ LEDGER2_ACCOUNT_MAP_SIZE
| constexpr size_t LEDGER2_ACCOUNT_MAP_SIZE = LEDGER2_ACCOUNT_MAP.size() |
|
staticconstexpr |