Let the bank go negative and no real account

This commit is contained in:
ai-bot committed 2026-11-16 19:32:32 +00:00
1 parent 4e3f4fbfa7
commit ed3bd80008
1 file changed
+4 -3
+4 -3
View File
@@ -237,9 +237,10 @@ never both**:
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
derived balance refuses kroner and names the shortfall in kroner. Skuld never invents coins or derived balance refuses kroner and names the shortfall in kroner. Skuld never invents coins or
kroner. Only a `transfer_out` is refused: a buy or a cost that overdraws is recorded and shown as kroner. **No real account may go negative**: a buy, a cost and a transfer on one of them is
a negative balance, so a history can be entered in any order and the missing kroner filled in refused when the kroner do not cover it, and the remedy is a deposit from the bank. The bank is
afterwards. the exception: it may go negative, and a negative bank balance is exactly how much has been drawn
from it, that is kroner that came in from outside the ledger.
## 4. Data model ## 4. Data model