diff --git a/docs/spec.md b/docs/spec.md index be19cd3..6c135ab 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -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` 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`, - `spend`, `loss`, `transfer_out`, `transfer_in` and `gift_given`; hidden for `gift_received` - and `admin_cost` (§3.2). +- **Avgift**: Antall (valfri) + Valuta (sats, shown as plain text), with a one-line explanation + that a fee raises the cost basis of a buy and is taken on top of what a transfer sends. A + kroner cost is not a fee: the owner folds it into the amount they type. Shown only for + `trade`, `income`, `spend`, `loss`, `transfer_out` and `gift_given` (§3.2). - **Anna**: Marknad (account selector, required except for `admin_cost`, where the field is 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 - one whole BTC in the transaction: `nok_ore × 10^8 ÷ sats`, where `nok_ore` is the kroner - amount of the transaction and `sats` the sats amount, and the fee is left out. A buy of - 1 000 sats for 10 kr gives 10 × 10^8 ÷ 1 000 = **1 000 000 kr** per BTC. It is shown as - `Pris` in the transaction list (§7.6) and as `Bitcoin pris` in the lot table of the form. It - is empty for the types that have no kroner amount or no sats amount: `transfer_out`, - `transfer_in`, `gift_given` and `admin_cost`. +- **Bitcoin pris**: not a field, a figure the app works out and shows. For `trade`, `income`, + `spend`, `loss` and `gift_received` it is the kroner price of one whole BTC in the + transaction: `nok_ore × 10^8 ÷ sats`, where `nok_ore` is the kroner amount of the transaction + and `sats` the sats amount, and the fee is left out. A buy of 1 000 sats for 10 kr gives + 10 × 10^8 ÷ 1 000 = **1 000 000 kr** per BTC. For a `transfer_out` and its `transfer_in` it is + the price of the lots the transfer used: the total cost of those lots × 10^8 ÷ their total + 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 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