From f9ee416d99fda542852382d3b8fbbf4c17c16ba9 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 23 Mar 2026 10:36:33 +0100 Subject: [PATCH] 23.03.26 --- modules/purchase_trade/lot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/purchase_trade/lot.py b/modules/purchase_trade/lot.py index b818cea..72a0634 100755 --- a/modules/purchase_trade/lot.py +++ b/modules/purchase_trade/lot.py @@ -1294,6 +1294,7 @@ class LotQt( wh &= (sa.party == client) if not finished: wh &= (pl.finished == False) + wh &= (sl.finished == False) AvQt = Case(((lqt.lot_p>0) & (lqt.lot_s>0), 0),else_=Case((lqt.lot_p>0,lqt.lot_quantity),else_=-lqt.lot_quantity)) MaQt = Case(((lqt.lot_p>0) & (lqt.lot_s>0), lqt.lot_quantity),else_=0)