From dabbd2c974ceca39889a565bbd0e618bfdd41a45 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 19 Jun 2009 00:00:57 +0100 Subject: Fixes to the 'xact' command (used to be 'entry') --- src/xact.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/xact.cc') 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()) { -- cgit v1.2.3