Use the returned market id for the dependant account
This commit is contained in:
1 parent
0fecd5250c
commit
05dd8cbbc8
1 file changed
+2
-2
+2
-2
@@ -175,10 +175,10 @@ class TaxTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def test_custody_totals_sum_the_custodian_and_its_dependants(self):
|
def test_custody_totals_sum_the_custodian_and_its_dependants(self):
|
||||||
exchange = create_market("Børs_01")
|
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",
|
create_transaction(market_id=exchange, date="2024-01-10",
|
||||||
leg_in_sats=150000000, leg_in_ore=30000000)
|
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)
|
leg_in_sats=50000000, leg_in_ore=10000000)
|
||||||
ledger.rebuild()
|
ledger.rebuild()
|
||||||
rows = tax.report(2024)["custody_totals"]
|
rows = tax.report(2024)["custody_totals"]
|
||||||
|
|||||||
Reference in new issue
Block a user