From 68113ef6f956661fd8f3cf74f6b74d89fb887e76 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Mon, 19 Jan 2009 14:22:43 +0000
Subject: [PATCH] remove slice calculation because this variables were not used
 : the calculation is made in the calculation script (see
 PaySheetTransaction_defaultCalculationScript)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25176 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/PaySheetTransaction.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/product/ERP5/Document/PaySheetTransaction.py b/product/ERP5/Document/PaySheetTransaction.py
index 10d1bb296f..96f25d3cbf 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 : #
         ######################
-- 
2.30.9