Send kroner only to and from the bank

This commit is contained in:
ai-bot committed 2026-11-16 19:03:00 +00:00
1 parent e94d6b8cea
commit 122253c280
1 file changed
+11 -8
+11 -8
View File
@@ -217,15 +217,18 @@ because the cost row carries both its kroner legs.
- §3.8's exclusion of a non-taxable account does not apply to the bank: a cost counts from its - §3.8's exclusion of a non-taxable account does not apply to the bank: a cost counts from its
own `taxable` flag, which is ticked by default (§3.10). own `taxable` flag, which is ticked by default (§3.10).
Kroner and sats move between the real accounts with a `transfer_out`, which carries **either sats Sats move between the real accounts with a `transfer_out`, which carries **either sats or kroner,
or kroner, never both**: never both**:
- `transfer_out` with `leg_out_sats`: exactly as today (§3.3), and `Til` is required. - `transfer_out` with `leg_out_sats`: exactly as today (§3.3). Both sides are real accounts, `Til`
- `transfer_out` with `leg_out_ore`: the kroner leave the source account and arrive on the is required, and the bank may not be named.
destination account, whose generated `transfer_in` gets `leg_in_ore` equal to the sent amount. - `transfer_out` with `leg_out_ore`: kroner, and then **the bank is one of the two sides**: the
No lot is involved and nothing is realized: kroner are kroner. account the transaction belongs to is the bank (a deposit into an exchange) or `Til` is the bank
- **An empty `Til` is a withdrawal, and it is kroner only.** The kroner leave the ledger and no (a withdrawal out of it). Kroner never move between two real accounts. The generated
`transfer_in` is generated. A `transfer_out` of sats always needs a `Til`. `transfer_in` on the other side gets `leg_in_ore` equal to the sent amount, no lot is involved,
and nothing is realized: kroner are kroner. Both sides are stored, so where the money went is
visible in the list.
- `Til` is always required: kroner never leave the ledger silently.
A `transfer_out` is refused when the source account does not hold enough of the currency as of A `transfer_out` is refused when the source account does not hold enough of the currency as of
the transaction date: the lot ledger refuses sats and names the shortfall in sats (§5.2), and the the transaction date: the lot ledger refuses sats and names the shortfall in sats (§5.2), and the