From a71d6666193a2c50ad976d0ecffe3b0d3392efcb Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 9 Feb 2026 14:50:27 +0100 Subject: [PATCH] 09.02.26 --- modules/purchase_trade/valuation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_trade/valuation.py b/modules/purchase_trade/valuation.py index 608351f..8da204f 100644 --- a/modules/purchase_trade/valuation.py +++ b/modules/purchase_trade/valuation.py @@ -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,