This commit is contained in:
2026-03-29 18:13:56 +02:00
parent 5cff728d79
commit 43c62607a8
2 changed files with 27 additions and 5 deletions

View File

@@ -113,11 +113,11 @@ class MtmStrategy(ModelSQL, ModelView):
)
)
elif comp.price_source_type == 'matrix' and comp.price_matrix:
value = self._get_matrix_price(comp, line, dt)
if comp.ratio:
value *= Decimal(comp.ratio)
elif comp.price_source_type == 'matrix' and comp.price_matrix:
value = self._get_matrix_price(comp, line, dt)
if comp.ratio:
value *= Decimal(comp.ratio) / Decimal(100)
total += value * qty