Don't do cost finalization for auto/period xacts

This commit is contained in:
John Wiegley 2010-06-22 20:53:05 -04:00
parent 205dd3a1ee
commit 1f3dba7756

View file

@ -269,6 +269,7 @@ bool xact_base_t::finalize()
posts_list copy(posts);
if (has_date()) {
foreach (post_t * post, copy) {
if (! post->cost)
continue;
@ -328,6 +329,7 @@ bool xact_base_t::finalize()
post->amount.annotation().add_flags(ANNOTATION_PRICE_FIXATED);
}
}
}
if (null_post != NULL) {
// If one post has no value at all, its value will become the inverse of