Merge pull request #509 from AerialX/patch-1

Transfer null_post flags to generated postings
This commit is contained in:
John Wiegley 2018-01-09 18:51:12 -08:00 committed by GitHub
commit 699b2fc32c
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());
}