From 835505e1e7a9b30d42699cc98f0583e4c7c6c15e Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 18:01:44 +0000 Subject: [PATCH] admin_cost consumes no lots, so it is not a consuming type --- ledger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger.py b/ledger.py index 0b8315c..baa5186 100644 --- a/ledger.py +++ b/ledger.py @@ -20,14 +20,14 @@ LOT_METHODS = ("FIFO", "LIFO", "HIFO") # Types that take sats out of an account. A sats fee is added to the amount # consumed only where docs/spec.md section 3.2 says it increases the sats used: # a sale and a spend. For a transfer the fee reduces what arrives instead, and -# for loss, gift given and admin cost the fee is only recorded. +# for a loss and a gift given it is only recorded. admin_cost is not here at +# all: it stands on its own and changes no holdings (section 3.10). CONSUMING_TYPES = ( "trade", "spend", "loss", "transfer_out", "gift_given", - "admin_cost", ) FEE_ADDS_TO_CONSUMPTION = ("trade", "spend")