Transfer null_post flags to generated postings

Resolve issue where generated balanced postings would become real when the original null post was virtual.
This commit is contained in:
Aaron Lindsay 2018-01-09 17:53:29 -05:00 committed by GitHub
parent c2bf7850d1
commit debce12a32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ namespace {
first = false;
} else {
unique_ptr<post_t> p(new post_t(null_post->account, amount.negated(),
ITEM_GENERATED | POST_CALCULATED));
null_post->flags() | ITEM_GENERATED | POST_CALCULATED));
p->set_state(null_post->state());
xact.add_post(p.release());
}