This commit is contained in:
2026-02-09 14:50:27 +01:00
parent 38254fee48
commit a71d666619

View File

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