Faircot report
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user