Make the cost leave the bank instead of carrying a second leg

This commit is contained in:
ai-bot committed 2026-11-16 19:20:43 +00:00
1 parent dd6650f671
commit 6e4d65b27a
1 file changed
+11 -8
+11 -8
View File
@@ -173,19 +173,22 @@ overridden per transaction (checkbox in the form, ticked by default).
### 3.10 Forvaltningskostnad (admin cost)
`admin_cost` is a cost in **kroner** that stands on its own, on the bank account of §3.11. It is
recorded as **one row** with `market_id` = the bank and two kroner legs of the same amount: the
kroner out of the bank and the same kroner back into it. The bank's balance is therefore
unchanged, no other account is touched, and the bank can never go negative. The owner enters the
amount once, in kroner; the server fills the second leg and the account.
`admin_cost` is a cost in **kroner** that is paid **from the bank** account of §3.11. It is
recorded as one row with `market_id` = the bank and `leg_out_ore` = the amount: the kroner leave
the bank, and the bank's balance drops by them. The owner enters the amount once, in kroner; the
server fills the account.
It consumes no lots, changes no holdings, and takes no fee. It is shown as its own line in the
report, in the CSV and on `/transaksjonar`.
Because the kroner leave the bank, the bank must hold them: a cost that overdraws the bank is
refused like any other payment (§3.11). Kroner reach the bank through a withdrawal from an
account (§3.11).
Its own `taxable` flag, ticked by default, decides whether the year's cost counts. The report
carries the year's sum of the kroner that went **out** of the bank as `admin_cost_ore`. It is
subtracted from `netto_ore` only when the setting `deduct_admin_costs` is on, which is **off by
default**. See open question Q2.
carries the year's sum of the kroner that left the bank as `admin_cost_ore`. It is subtracted
from `netto_ore` only when the setting `deduct_admin_costs` is on, which is **off by default**.
See open question Q2.
---