summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-19 00:00:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:17 -0400
commit086ea40d9993f2ac86941a0462dabbd7f18d58f3 (patch)
tree9b905b976c620382f9cc048655254dc23588e365 /journal.cc
parentba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (diff)
downloadfork-ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.gz
fork-ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.tar.bz2
fork-ledger-086ea40d9993f2ac86941a0462dabbd7f18d58f3.zip
We now compile with boost_date_time (although parts of the code have
been stubbed out as a result).
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;
}