Don't do cost finalization for auto/period xacts
This commit is contained in:
parent
205dd3a1ee
commit
1f3dba7756
1 changed files with 47 additions and 45 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue