summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-02-04 19:47:16 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-02-05 00:00:29 -0500
commit9d61d3d621606f0158a048628c866a692465d886 (patch)
tree797067970e5b81543ece809d03bf5c7170b4a052 /src/item.h
parentb78e22d52b75cafd63678ee786b1653afffa49e6 (diff)
downloadfork-ledger-9d61d3d621606f0158a048628c866a692465d886.tar.gz
fork-ledger-9d61d3d621606f0158a048628c866a692465d886.tar.bz2
fork-ledger-9d61d3d621606f0158a048628c866a692465d886.zip
Added actual_date() methods for items
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index 8250ab6e..f23350fc 100644
--- a/src/item.h
+++ b/src/item.h
@@ -173,6 +173,10 @@ public:
return *effective;
return *_date;
}
+ virtual date_t actual_date() const {
+ assert(_date);
+ return *_date;
+ }
virtual optional<date_t> effective_date() const {
return _date_eff;
}