144 "LEDGER2_ACCOUNT_MAP: duplicate account id detected");
155 return meta ? meta->name : std::string_view{};
std::string_view ledger2_get_account_name_by_id(uint64_t account_id)
Definition: accounts.hpp:153
static constexpr size_t LEDGER2_ACCOUNT_MAP_SIZE
Definition: accounts.hpp:129
constexpr std::array< Ledger2AccountMeta, 10 > LEDGER2_ACCOUNT_MAP
Хардкод-справочник плана счетов (MVP, 10 записей).
Definition: accounts.hpp:116
constexpr const Ledger2AccountMeta * ledger2_find_account_meta(uint64_t account_id)
Definition: accounts.hpp:146
constexpr AccountType ledger2_get_account_type_by_id(uint64_t account_id)
Definition: accounts.hpp:158
AccountType
Тип бухгалтерского счёта.
Definition: accounts.hpp:20
Definition: accounts.hpp:132
constexpr bool account_ids_unique()
Definition: accounts.hpp:133
План счетов ledger2 (MVP) со смещением *1000.
Definition: accounts.hpp:77
static constexpr uint64_t TARGET_RECEIPTS
86 — Целевое финансирование (П)
Definition: accounts.hpp:91
static constexpr uint64_t FINANCIAL_INVESTMENTS
58 — Финансовые вложения (А)
Definition: accounts.hpp:83
static constexpr uint64_t INTANGIBLE_ASSETS
04 — Нематериальные активы (А)
Definition: accounts.hpp:79
static constexpr uint64_t TAX_SETTLEMENTS
68 — Расчёты по налогам и сборам (П): удержанный НДФЛ до перечисления в бюджет
Definition: accounts.hpp:89
static constexpr uint64_t OTHER_INCOME_EXPENSES
91 — Прочие доходы и расходы (А/П; только уценка остатка при выдаче)
Definition: accounts.hpp:94
static constexpr uint64_t NON_CURRENT_INVESTMENTS
08 — Вложения во внеоборотные активы (А)
Definition: accounts.hpp:80
static constexpr uint64_t BANK_ACCOUNT
51 — Расчётный счёт (А)
Definition: accounts.hpp:82
static constexpr uint64_t MATERIALS
10 — Материалы (А; склад имущества на КУ, per-КУ субсчета)
Definition: accounts.hpp:81
static constexpr uint64_t OTHER_SETTLEMENTS
76 — Расчёты с разными дебиторами и кредиторами (А-П): суспенс регистрационного взноса до решения сов...
Definition: accounts.hpp:86
static constexpr uint64_t SHARE_FUND
80 — Паевой фонд (П)
Definition: accounts.hpp:90