diff --git a/product/ERP5/Document/PaySheetTransaction.py b/product/ERP5/Document/PaySheetTransaction.py
index 10d1bb296f42bc9de007098f368bf6fa71a97b63..96f25d3cbf2049e0957d4e8ed1c8d6520a79c55f 100644
--- a/product/ERP5/Document/PaySheetTransaction.py
+++ b/product/ERP5/Document/PaySheetTransaction.py
@@ -425,19 +425,6 @@ class PaySheetTransaction(Invoice):
 
           cell = getModifiedCell(cell, line_dict[slice], tax_category)
 
-        # get the slice :
-        model_slice = model_line.getParentValue().getCell(slice)
-        quantity = 0.0
-        price = 0.0
-        model_slice_min = 0
-        model_slice_max = 0
-        if model_slice is None:
-          pass # that's not a problem :)
-
-        else:
-          model_slice_min = model_slice.getQuantityRangeMin()
-          model_slice_max = model_slice.getQuantityRangeMax()
-
         ######################
         # calculation part : #
         ######################