Use the returned market id for the dependant account

This commit is contained in:
ai-bot committed 2026-11-14 14:30:31 +00:00
1 parent 0fecd5250c
commit 05dd8cbbc8
1 file changed
+2 -2
+2 -2
View File
@@ -175,10 +175,10 @@ class TaxTestCase(unittest.TestCase):
def test_custody_totals_sum_the_custodian_and_its_dependants(self):
exchange = create_market("Børs_01")
create_market("Barn", kind="other", taxable=0, custody_market_id=exchange)
child = create_market("Barn", kind="other", taxable=0, custody_market_id=exchange)
create_transaction(market_id=exchange, date="2024-01-10",
leg_in_sats=150000000, leg_in_ore=30000000)
create_transaction(market_id=2, date="2024-01-10",
create_transaction(market_id=child, date="2024-01-10",
leg_in_sats=50000000, leg_in_ore=10000000)
ledger.rebuild()
rows = tax.report(2024)["custody_totals"]