ecb for dashboard - WRONG NEEDS CORRECTION ASAP

This commit is contained in:
Priec
2026-08-13 10:20:04 +02:00
parent 78d72b7a44
commit 8f8b5b4601
10 changed files with 100 additions and 3 deletions

View File

@@ -16,6 +16,37 @@
</h2>
<p class="hint">{{ page.explanation() }}</p>
{# The question a reader came with. Coverage is a publication date, and
turning it into "which transaction dates will post" means applying the
rule the backend applies -- so the backend applies it and sends both
bounds, rather than the page inviting the reader to do it in their head. #}
<div class="postable">
<p class="postable-lead">What can be posted right now</p>
{% if let Some(through) = page.transactions_postable_through %}
<dl class="postable-grid">
<div>
<dt>Ordinary transactions</dt>
<dd>dated up to and including <strong>{{ through }}</strong></dd>
<dd class="hint">Converted at the rate published the business day before the transaction.</dd>
</div>
<div>
<dt>Statements &amp; decisive dates</dt>
<dd>dated up to and including <strong>{{ page.statements_postable_through.as_deref().unwrap_or("—") }}</strong></dd>
<dd class="hint">Converted at the rate published on that day, or the last business day before it.</dd>
</div>
</dl>
<p class="hint">
A foreign-currency amount dated after its limit is refused outright until the
importer catches up — it is not converted at a stale rate.
</p>
{% else %}
<p>
<strong>Nothing.</strong> No publication has ever been verified, so every
foreign-currency amount is refused whatever its date.
</p>
{% endif %}
</div>
{# Coverage first and on its own line: the two dates and the gap between
them are the whole answer, and burying them in a four-column grid made
them read as trivia. #}