Faircot report

This commit is contained in:
2026-07-19 21:16:19 +02:00
parent 669320c976
commit a94f36e26f
2 changed files with 1 additions and 4 deletions

View File

@@ -492,8 +492,7 @@ class Lot(ModelSQL, ModelView):
st = state_id
else:
st = self.lot_state.id
logger.info("GET_HIST_QT:%s",st)
lot = [e for e in self.lot_hist if e.quantity_type.id == st][0]
lot = [e for e in self.lot_hist if e.quantity_type.id == st][0]
qt = round(lot.quantity,5)
gross_qt = round(lot.gross_quantity,5)
return qt, gross_qt