This commit is contained in:
2026-04-01 11:08:02 +02:00
parent 06922973b7
commit 5054b64cd0
2 changed files with 2 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ class PurchaseTradeTestCase(ModuleTestCase):
Decimal('250.00'))
def test_get_strategy_mtm_price_returns_unit_price(self):
'strategy mtm price exposes the unit valuation price'
'strategy mtm price exposes the raw unit valuation price'
strategy = Mock(
scenario=Mock(
valuation_date='2026-03-29',
@@ -90,7 +90,7 @@ class PurchaseTradeTestCase(ModuleTestCase):
self.assertEqual(
valuation_module.Valuation._get_strategy_mtm_price(strategy, line),
Decimal('25.0000'))
Decimal('100.0000'))
def test_parse_numbers_supports_inline_and_legacy_separators(self):
'parse_numbers keeps supporting inline entry and legacy separators'

View File

@@ -144,9 +144,6 @@ class ValuationBase(ModelSQL):
value = Decimal(strategy._get_matrix_price(
comp, line, scenario.valuation_date))
if comp.ratio:
value *= Decimal(comp.ratio) / Decimal(100)
total += value
return round(total, 4)