Patch docs/spec.md

This commit is contained in:
ai-bot committed 2026-11-15 10:30:25 +00:00
1 parent 599b23cd41
commit 4dfe40557a
1 file changed
+13 -11
+13 -11
View File
@@ -545,19 +545,21 @@ A field whose currency is not a choice shows the unit as plain text instead of a
`sats` for every sats amount and `kr` for every kroner amount. Only `Kjøp` and `Salg/kostnad` `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. 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 - **Avgift**: Antall (valfri) + Valuta (sats, shown as plain text), with a one-line explanation
raises the cost basis and a sell fee lowers the proceeds. Shown only for `trade`, `income`, that a fee raises the cost basis of a buy and is taken on top of what a transfer sends. A
`spend`, `loss`, `transfer_out`, `transfer_in` and `gift_given`; hidden for `gift_received` kroner cost is not a fee: the owner folds it into the amount they type. Shown only for
and `admin_cost` (§3.2). `trade`, `income`, `spend`, `loss`, `transfer_out` and `gift_given` (§3.2).
- **Anna**: Marknad (account selector, required except for `admin_cost`, where the field is - **Anna**: Marknad (account selector, required except for `admin_cost`, where the field is
hidden and the account is stored as null), Notat (valfri). hidden and the account is stored as null), Notat (valfri).
- **Bitcoin pris**: not a field, a figure the app works out and shows. It is the NOK price of - **Bitcoin pris**: not a field, a figure the app works out and shows. For `trade`, `income`,
one whole BTC in the transaction: `nok_ore × 10^8 ÷ sats`, where `nok_ore` is the kroner `spend`, `loss` and `gift_received` it is the kroner price of one whole BTC in the
amount of the transaction and `sats` the sats amount, and the fee is left out. A buy of transaction: `nok_ore × 10^8 ÷ sats`, where `nok_ore` is the kroner amount of the transaction
1 000 sats for 10 kr gives 10 × 10^8 ÷ 1 000 = **1 000 000 kr** per BTC. It is shown as and `sats` the sats amount, and the fee is left out. A buy of 1 000 sats for 10 kr gives
`Pris` in the transaction list (§7.6) and as `Bitcoin pris` in the lot table of the form. It 10 × 10^8 ÷ 1 000 = **1 000 000 kr** per BTC. For a `transfer_out` and its `transfer_in` it is
is empty for the types that have no kroner amount or no sats amount: `transfer_out`, the price of the lots the transfer used: the total cost of those lots × 10^8 ÷ their total
`transfer_in`, `gift_given` and `admin_cost`. sats, so the two sides of a transfer show the same price. It is shown as `Bitcoin pris` in the
transaction list (§7.6) and in the lot table of the form. It is empty for `gift_given` and
`admin_cost`, which have no sats and kroner pair.
- When the type consumes sats, the form shows a **Parti** (lots) section listing the candidate - When the type consumes sats, the form shows a **Parti** (lots) section listing the candidate
lots of the account, each with acquisition date, remaining sats and cost per sat, with the lots of the account, each with acquisition date, remaining sats and cost per sat, with the
method's automatic pick pre-selected and the possibility to tick other lots or change the method's automatic pick pre-selected and the possibility to tick other lots or change the