parent
cbf4cba18b
commit
8869566331
1 changed files with 10 additions and 8 deletions
18
src/xact.cc
18
src/xact.cc
|
|
@ -355,14 +355,16 @@ bool xact_base_t::finalize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (post->amount.has_annotation()) {
|
post->amount =
|
||||||
if (breakdown.amount.has_annotation())
|
breakdown.amount.has_annotation() ?
|
||||||
breakdown.amount.annotation().tag = post->amount.annotation().tag;
|
amount_t(breakdown.amount,
|
||||||
else
|
annotation_t(breakdown.amount.annotation().price,
|
||||||
breakdown.amount.annotate
|
breakdown.amount.annotation().date,
|
||||||
(annotation_t(none, none, post->amount.annotation().tag));
|
post->amount.has_annotation() ?
|
||||||
}
|
post->amount.annotation().tag :
|
||||||
post->amount = breakdown.amount;
|
breakdown.amount.annotation().tag,
|
||||||
|
breakdown.amount.annotation().value_expr)) :
|
||||||
|
breakdown.amount;
|
||||||
DEBUG("xact.finalize", "added breakdown, balance = " << balance);
|
DEBUG("xact.finalize", "added breakdown, balance = " << balance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue