From 177f862263575308f8a2b88fa98076b3e5de26db Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 14 Feb 2026 20:16:28 +0100 Subject: [PATCH] 14.02.26 --- modules/purchase_trade/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_trade/dashboard.py b/modules/purchase_trade/dashboard.py index 61aa362..fba9705 100755 --- a/modules/purchase_trade/dashboard.py +++ b/modules/purchase_trade/dashboard.py @@ -291,7 +291,7 @@ class Dashboard(ModelSQL, ModelView): f1,f2,f3,f4,f5,d1,d2,d3,d4,d5 = self.get_last_five_fx_rates() Valuation = Pool().get('valuation.valuation') last_total,last_variation = Valuation.get_totals() - pnl_amount = "{:,.0f}".format(round(total_t,0)) + pnl_amount = "{:,.0f}".format(round(last_total,0)) pnl_variation = 0 if last_total: pnl_variation = "{:,.2f}".format(round((last_variation/last_total)*100,0))