Patch docs/spec.md
This commit is contained in:
1 parent
cdd5dd308e
commit
c420052d80
1 file changed
+12
-2
+12
-2
@@ -531,8 +531,18 @@ Field order follows the owner's spreadsheet: **Generelt**, then the type-specifi
|
|||||||
| 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 (sats). No account and no fee: the Marknad and Avgift sections are hidden and the row is stored with `market_id` null. |
|
||||||
|
|
||||||
- **Avgift**: Antall (valfri) + Valuta (sats/NOK), with a one-line explanation that a buy fee
|
- **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.
|
raises the cost basis and a sell fee lowers the proceeds. Shown only for `trade`, `income`,
|
||||||
- **Anna**: Marknad (account selector, required), Notat (valfri).
|
`spend`, `loss`, `transfer_out`, `transfer_in` and `gift_given`; hidden for `gift_received`
|
||||||
|
and `admin_cost` (§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`.
|
||||||
- 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
|
||||||
|
|||||||
Reference in new issue
Block a user