summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-03-17 02:18:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-03-17 02:18:46 -0400
commitd7b8095c3db345329cf89b8c00d51817ae4ce4c9 (patch)
tree5cdd04a952eb43d2a65d1b59c9808f38a115f805 /src/item.h
parent0e34d08b8d9100a59e8d457cbe7343462a4d8739 (diff)
downloadfork-ledger-d7b8095c3db345329cf89b8c00d51817ae4ce4c9.tar.gz
fork-ledger-d7b8095c3db345329cf89b8c00d51817ae4ce4c9.tar.bz2
fork-ledger-d7b8095c3db345329cf89b8c00d51817ae4ce4c9.zip
Tags were not being set properly on postings
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/item.h b/src/item.h
index f82e8da6..7045c875 100644
--- a/src/item.h
+++ b/src/item.h
@@ -157,12 +157,14 @@ public:
virtual optional<string> get_tag(const mask_t& tag_mask,
const optional<mask_t>& value_mask = none) const;
- virtual string_map::iterator set_tag(const string& tag,
- const optional<string>& value = none);
+ virtual string_map::iterator
+ set_tag(const string& tag,
+ const optional<string>& value = none,
+ const bool overwrite_existing = true);
- virtual void parse_tags(const char * p,
+ virtual void parse_tags(const char * p, bool overwrite_existing = true,
optional<date_t::year_type> current_year = none);
- virtual void append_note(const char * p,
+ virtual void append_note(const char * p, bool overwrite_existing = true,
optional<date_t::year_type> current_year = none);
static bool use_effective_date;