summaryrefslogtreecommitdiff
path: root/journal.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-18 23:50:25 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:37 -0400
commitba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (patch)
tree02bfb4221cf9b73bd57cf6df2abae58f3b365c0b /journal.cc
parent4c460a1c40cfb1547ce9a4c91b4e8a87d768463d (diff)
downloadfork-ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.tar.gz
fork-ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.tar.bz2
fork-ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.zip
Initial round of changes to use boost_date_time
Diffstat (limited to 'journal.cc')
-rw-r--r--journal.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/journal.cc b/journal.cc
index a64b005e..eaf3de35 100644
--- a/journal.cc
+++ b/journal.cc
@@ -1,5 +1,4 @@
#include "journal.h"
-#include "datetime.h"
#include "mask.h"
#include "format.h"
#if 0
@@ -23,14 +22,14 @@ transaction_t::~transaction_t()
if (cost) delete cost;
}
-datetime_t transaction_t::actual_date() const
+ptime transaction_t::actual_date() const
{
if (! _date && entry)
return entry->actual_date();
return _date;
}
-datetime_t transaction_t::effective_date() const
+ptime transaction_t::effective_date() const
{
if (! _date_eff && entry)
return entry->effective_date();
@@ -182,7 +181,7 @@ bool entry_base_t::finalize()
! (*x)->amount.commodity().annotated)
(*x)->amount.annotate_commodity
(abs(per_unit_cost),
- entry ? entry->actual_date() : datetime_t(),
+ entry ? entry->actual_date() : ptime(),
entry ? entry->code : "");
(*x)->cost = new amount_t(- (per_unit_cost * (*x)->amount));