mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 12:35:21 +02:00
* Balance reconcilations with new components * Fix materializer and test assumptions * Fix investment valuation calculations and recon display * Lint fixes * Balance series uses new component fields
22 lines
836 B
Text
22 lines
836 B
Text
<div class="space-y-3">
|
|
<% reconciliation_items.each_with_index do |item, index| %>
|
|
<% if item[:style] == :subtotal %>
|
|
<hr class="border border-primary">
|
|
<% end %>
|
|
|
|
<dl class="flex gap-4 items-center text-sm text-primary">
|
|
<dt class="flex items-center gap-2">
|
|
<%= item[:label] %>
|
|
<%= render DS::Tooltip.new(text: item[:tooltip], placement: "left", size: "sm") %>
|
|
</dt>
|
|
<hr class="grow border-dashed <%= item[:style] == :final ? "border-primary" : "border-secondary" %>">
|
|
<dd class="<%= item[:style] == :start || item[:style] == :final ? "font-bold" : item[:style] == :subtotal ? "font-medium" : "" %>">
|
|
<%= item[:value].format %>
|
|
</dd>
|
|
</dl>
|
|
|
|
<% if item[:style] == :adjustment %>
|
|
<hr class="border border-primary">
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|