summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'journal.cc')
-rw-r--r--journal.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/journal.cc b/journal.cc
index eaf3de35..0b9f3909 100644
--- a/journal.cc
+++ b/journal.cc
@@ -24,14 +24,14 @@ transaction_t::~transaction_t()
ptime transaction_t::actual_date() const
{
- if (! _date && entry)
+ if (_date.is_not_a_date_time() && entry)
return entry->actual_date();
return _date;
}
ptime transaction_t::effective_date() const
{
- if (! _date_eff && entry)
+ if (_date_eff.is_not_a_date_time() && entry)
return entry->effective_date();
return _date_eff;
}
@@ -312,7 +312,7 @@ void entry_t::add_transaction(transaction_t * xact)
bool entry_t::valid() const
{
- if (! _date || ! journal) {
+ if (_date.is_not_a_date_time() || ! journal) {
DEBUG_PRINT("ledger.validate", "entry_t: ! _date || ! journal");
return false;
}