From 599b23cd41c20439a4045eeaf18cc18f363aab3e Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 15 Nov 2026 10:30:21 +0000 Subject: [PATCH] Patch docs/spec.md --- docs/spec.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/spec.md b/docs/spec.md index 1b263a2..be19cd3 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -532,14 +532,18 @@ Field order follows the owner's spreadsheet: **Generelt**, then the type-specifi | Type | Fields | | --- | --- | -| Handel | Kjøp: Antall, Valuta (sats/NOK). Salg/kostnad: Antall, Valuta (sats/NOK). Exactly one leg must be sats and the other NOK. | -| Inntekt | Inntekt/gevinst: Antall, Valuta (sats). Pris: Antall, Valuta (NOK). | -| Forbruk | Forbruk: Antall, Valuta (sats). Utgangsverdi: Antall, Valuta (NOK). | -| Tap | Tap: Antall, Valuta (sats). Pris: Antall, Valuta (NOK, valfri, berre dokumentasjon). | +| Handel | Kjøp: Antall, Valuta (sats/kr, sats preselected). Salg/kostnad: Antall, Valuta (sats/kr, kr preselected). Exactly one leg must be sats and the other kroner. | +| Inntekt | Inntekt/gevinst: Antall, Valuta (sats). Pris: Antall, Valuta (kr). | +| Forbruk | Forbruk: Antall, Valuta (sats). Utgangsverdi: Antall, Valuta (kr). | +| Tap | Tap: Antall, Valuta (sats). Pris: Antall, Valuta (kr), required. | | Overføring ut | Sendt: Antall, Valuta (sats). Til: account selector. | -| Gåve (motteke) | Motteke gåve: Antall, Valuta (sats). Pris: Antall, Valuta (NOK). | +| Gåve (motteke) | Motteke gåve: Antall, Valuta (sats). Pris: Antall, Valuta (kr). | | Gåve (gjeven) | Gjeven gåve: Antall, Valuta (sats). | -| Forvaltningskostnad | Kostnad: Antall, Valuta (sats). No account and no fee: the Marknad and Avgift sections are hidden and the row is stored with `market_id` null. | +| Forvaltningskostnad | Kostnad: Antall, Valuta (kr). No account and no fee: the Marknad and Avgift sections are hidden and the row is stored with `market_id` null. | + +A field whose currency is not a choice shows the unit as plain text instead of a selector: +`sats` for every sats amount and `kr` for every kroner amount. Only `Kjøp` and `Salg/kostnad` +on Handel get a selector, because they are the only two that can be either. - **Avgift**: Antall (valfri) + Valuta (sats/NOK), with a one-line explanation that a buy fee raises the cost basis and a sell fee lowers the proceeds. Shown only for `trade`, `income`,