This commit is contained in:
2026-02-09 14:49:01 +01:00
parent 5cc66b3a3a
commit 38254fee48

View File

@@ -303,8 +303,8 @@ class ValuationBase(ModelSQL):
with Transaction().set_context(date=Date.today()):
price = Currency.compute(sf.currency, price, line.purchase.currency)
if line.mtm:
qty = round(lot.get_current_quantity_converted(), 5)
for strat in line.mtm:
qty = round(lot.get_current_quantity_converted(), 5)
fee_lines.append({
'lot': lot.id,
'sale': lot.sale_line.sale.id if lot.sale_line else None,