Commit b31046c0 authored by Aurel's avatar Aurel

do not fail il no slice found

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21222c85
......@@ -100,6 +100,8 @@ for paysheet in paysheet_list :\n
stop_date=paysheet.getStopDate())\n
if model is not None:\n
slice = model.getCell(slice_path)\n
if slice is None:\n
return 0.0\n
plafond_max = slice.getQuantityRangeMax()\n
plafond_min = slice.getQuantityRangeMin()\n
gross_salary=paysheet.PaySheetTransaction_getMovementTotalPriceFromCategory(\\\n
......
132
\ No newline at end of file
133
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment