From c24de18fcd6d2e0e5526b1668820f514ca93eea7 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 23 Mar 2026 13:49:32 +0100 Subject: [PATCH] 23.03.26 --- modules/purchase_trade/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_trade/purchase.py b/modules/purchase_trade/purchase.py index 5b2d3d6..ae23753 100755 --- a/modules/purchase_trade/purchase.py +++ b/modules/purchase_trade/purchase.py @@ -212,7 +212,7 @@ class Summary(ModelSQL,ModelView): Max(pp.fixed_qt+pp.unfixed_qt).as_('quantity'), Max(pp.fixed_qt).as_('fixed_qt'), (Min(pp.unfixed_qt)).as_('unfixed_qt'), - Max(Case((pp.last, pp.eod_price),else_=0)).as_('price'), + (Max(Case((pp.last, pp.eod_price),else_=0)) * Max(Case((pc.ratio, pc.ratio / 100),else_=0))).as_('price'), (Max(pp.fixed_qt)/Max(pp.fixed_qt+pp.unfixed_qt)).as_('progress'), Max(pc.ratio).as_('ratio'), #where=wh,