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

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

namespace ledger {

struct reconcile_results_t
{
  value_t previous_balance;
  value_t pending_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