continue
wealth_before = accounts_before[path].wealth
wealth_after = accounts_after[path].wealth
- directly_set = full_name == path
+ direct_target = full_name == path
diff = {
c: a for c, a in (wealth_after - wealth_before
).moneys.items()
if a != 0
- or (directly_set
+ or (direct_target
and c in booking.account_changes[full_name].moneys)}
- if diff or directly_set:
+ if diff or direct_target:
displayed_currencies = set(diff.keys())
for wealth in wealth_before, wealth_after:
wealth.ensure_currencies(displayed_currencies)
wealth.purge_currencies_except(displayed_currencies)
node: dict[str, Any] = {
'name': path,
- 'directly_set': directly_set,
+ 'direct_target': direct_target,
'wealth_before': wealth_before.moneys,
'wealth_diff': diff,
'wealth_after': wealth_after.moneys,
{% macro booking_balance_account_with_children(node) %}
<tr class="alternating">
-<td {% if node.directly_set %}class="directly_set"{% endif %}>{{node.name}}{% if node.children %}:{% endif %}</td>
+<td {% if node.direct_target %}class="direct_target"{% endif %}>{{node.name}}{% if node.children %}:{% endif %}</td>
<td class="money">
<table>
{% for curr, amt in node.wealth_before.items() %}
input.date_input, input.number_input { font-family: monospace; }
input.number_input { text-align: right; }
input.date_input { margin-right: 0.1em; }
-td.directly_set { font-weight: bold; }
+td.direct_target { font-weight: bold; }
{% endblock %}