This commit is contained in:
2026-03-23 13:49:32 +01:00
parent cb9c868e88
commit c24de18fcd

View File

@@ -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,