summaryrefslogtreecommitdiff
path: root/reconcile.h
blob: 2033f1ee9220347cab0364dcbf34d2ca6631fa29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _RECONCILE_H
#define _RECONCILE_H

#include "journal.h"
#include "walk.h"

namespace ledger {

struct reconcile_results_t
{
  value_t previous_balance;
  value_t remaining_balance;

  transactions_list pending_xacts;
};

reconcile_results_t reconcile_account(journal_t&     journal,
				      account_t&     account,
				      const value_t& balance);

} // namespace ledger

#endif // _RECONCILE_H