DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
Loading...
Searching...
No Matches
drn::accounting::LedgerAccount Struct Reference

This is responsible for recording the transactions relating to an entity's assets, liabilities, capital, revenue, and expenses of a given account. More...

#include <LedgerBooks.hpp>

Collaboration diagram for drn::accounting::LedgerAccount:

Public Member Functions

bool operator== (const LedgerAccount &other) const
 Equality operator compares all members.

Public Attributes

Account account_
 The account information for the ledger.
std::map< TransactionNumber, Transactiontransactions_
 All the transactions in an account indexed by its transaction number.

Detailed Description

This is responsible for recording the transactions relating to an entity's assets, liabilities, capital, revenue, and expenses of a given account.

Member Function Documentation

◆ operator==()

bool drn::accounting::LedgerAccount::operator== ( const LedgerAccount & other) const

Equality operator compares all members.

Parameters
otherThe other object whose members should all be equal.
Returns
When all member variables are the same it'll give true, else false.

Member Data Documentation

◆ account_

Account drn::accounting::LedgerAccount::account_

The account information for the ledger.

◆ transactions_

std::map<TransactionNumber, Transaction> drn::accounting::LedgerAccount::transactions_

All the transactions in an account indexed by its transaction number.