fix(import): label the SIE preview IB total as "summa debet", not "IB Summa" (#2142)

The fourth stat card in the SIE preview showed the debit-side total of the
opening-balance voucher under the label "IB Summa". A user read it as the
net ingående balans and could not reconcile it against any single figure.

- Relabel the card "IB, summa debet" and add a one-line helper saying it is
  the sum of all debit balances in IB, not a single account balance. The
  number equals "Total debet" in the Balansräkning (IB) card right below.
- Review step: "Skapar IB-verifikation, summa debet X" instead of
  "Skapar verifikation för IB på X".
- Comment the field in generateImportPreview so the meaning is explicit.

No data or logic change: openingBalanceTotal keeps its semantics.


Claude-Session: https://claude.ai/code/session_01AvaV9n4GswzF2Mq932PXTJ

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-09-04 09:42:41 +02:00
committed by GitHub
co-authored by Jakob Wennberg Claude Fable 5.1
parent 8265b5d166
commit 227a6317f1
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ export default function ImportReviewStep({
</Label>
<p className="text-sm text-muted-foreground">
{hasOpeningBalances
? `Skapar verifikation för IB på ${formatCurrency(preview.openingBalanceTotal)}`
? `Skapar IB-verifikation, summa debet ${formatCurrency(preview.openingBalanceTotal)}`
: 'Inga ingående balanser i filen'}
</p>
{existingIbCount > 0 && (
+4 -1
View File
@@ -149,9 +149,12 @@ export default function SIEPreviewStep({
<Card>
<CardContent className="pt-6">
<div className="flex items-center gap-2 text-muted-foreground mb-1">
<span className="text-sm">IB Summa</span>
<span className="text-sm">IB, summa debet</span>
</div>
<p className="text-2xl font-display tabular-nums">{formatCurrency(preview.openingBalanceTotal)}</p>
<p className="mt-1 text-xs text-muted-foreground">
Summan av alla debetsaldon i ingående balans, inte ett enskilt kontosaldo.
</p>
</CardContent>
</Card>
</div>