summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-22 20:51:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-22 20:51:18 -0400
commit205dd3a1ee41dec370fc4ff05412e72d42977a3b (patch)
tree744e35d34ca17b9b381102cf65e5d8eaf7cb3c46 /src/item.h
parent26a94fb1edef67bba7651f388ed25f29f1e6c38a (diff)
downloadfork-ledger-205dd3a1ee41dec370fc4ff05412e72d42977a3b.tar.gz
fork-ledger-205dd3a1ee41dec370fc4ff05412e72d42977a3b.tar.bz2
fork-ledger-205dd3a1ee41dec370fc4ff05412e72d42977a3b.zip
Added has_date() method to item_t
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 b7dde35f..79d2f23b 100644
--- a/src/item.h
+++ b/src/item.h
@@ -175,6 +175,10 @@ public:
static bool use_effective_date;
+ virtual bool has_date() const {
+ return _date;
+ }
+
virtual date_t date() const {
assert(_date);
if (use_effective_date)