summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/ledger.h b/ledger.h
index 7f20538e..2abf0416 100644
--- a/ledger.h
+++ b/ledger.h
@@ -34,12 +34,14 @@ class account_t;
class transaction_t
{
public:
- entry_t * entry;
- account_t * account;
- amount_t amount;
- amount_t cost;
- unsigned int flags;
- std::string note;
+ entry_t * entry;
+ account_t * account;
+ amount_t amount;
+ amount_t cost;
+ unsigned int flags;
+ std::string note;
+ balance_pair_t total;
+ unsigned int index;
transaction_t(entry_t * _entry, account_t * _account)
: entry(_entry), account(_account), flags(TRANSACTION_NORMAL) {}