diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-19 00:00:57 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-19 00:00:57 +0100 |
commit | dabbd2c974ceca39889a565bbd0e618bfdd41a45 (patch) | |
tree | a1b2330b82c36df5cb575abbae7789ebde7b22ae /src/xact.cc | |
parent | 83c93fdb739a014997b142406558e0b70afc56a1 (diff) | |
download | fork-ledger-dabbd2c974ceca39889a565bbd0e618bfdd41a45.tar.gz fork-ledger-dabbd2c974ceca39889a565bbd0e618bfdd41a45.tar.bz2 fork-ledger-dabbd2c974ceca39889a565bbd0e618bfdd41a45.zip |
Fixes to the 'xact' command (used to be 'entry')
Diffstat (limited to 'src/xact.cc')
-rw-r--r-- | src/xact.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xact.cc b/src/xact.cc index 9e5322fa..5c95b781 100644 --- a/src/xact.cc +++ b/src/xact.cc @@ -387,10 +387,16 @@ expr_t::ptr_op_t xact_t::lookup(const string& name) bool xact_t::valid() const { - if (! _date || ! journal) { - DEBUG("ledger.validate", "xact_t: ! _date || ! journal"); + if (! _date) { + DEBUG("ledger.validate", "xact_t: ! _date"); return false; } +#if 0 + if (! journal) { + DEBUG("ledger.validate", "xact_t: ! journal"); + return false; + } +#endif foreach (post_t * post, posts) if (post->xact != this || ! post->valid()) { |