summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 07:15:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 08:30:39 -0400
commit0fdb900c9975b97b43fe85c2691a9d5e69006fab (patch)
tree833ced95e5bd15a2bce802cd474f3c0fd93a88f7 /src/textual.cc
parentf20b6a3b9edc2ace7b85eb4c961d57f69d98ea09 (diff)
downloadfork-ledger-0fdb900c9975b97b43fe85c2691a9d5e69006fab.tar.gz
fork-ledger-0fdb900c9975b97b43fe85c2691a9d5e69006fab.tar.bz2
fork-ledger-0fdb900c9975b97b43fe85c2691a9d5e69006fab.zip
Redid the way temporaries are handled in filtering
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 56c67ef3..09cd8360 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -446,7 +446,7 @@ void instance_t::default_commodity_directive(char * line)
void instance_t::default_account_directive(char * line)
{
journal.basket = account_stack.front()->find_account(skip_ws(line + 1));
- journal.basket->known = true;
+ journal.basket->add_flags(ACCOUNT_KNOWN);
}
void instance_t::price_conversion_directive(char * line)
@@ -845,11 +845,11 @@ post_t * instance_t::parse_post(char * line,
if (! post->account)
post->account = account->find_account(name);
- if (honor_strict && strict && ! post->account->known) {
+ if (honor_strict && strict && ! post->account->has_flags(ACCOUNT_KNOWN)) {
if (post->_state == item_t::UNCLEARED)
warning_(_("\"%1\", line %2: Unknown account '%3'")
<< pathname << linenum << post->account->fullname());
- post->account->known = true;
+ post->account->add_flags(ACCOUNT_KNOWN);
}
// Parse the optional amount