Commit bca756d4 authored by Jérome Perrin's avatar Jérome Perrin

A setter should not return anything


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30137 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46f2a6eb
...@@ -811,7 +811,7 @@ class Movement(XMLObject, Amount): ...@@ -811,7 +811,7 @@ class Movement(XMLObject, Amount):
Set the quantity Set the quantity
""" """
if source_debit in (None, ''): if source_debit in (None, ''):
return 0.0 return
try: try:
source_debit = float(source_debit) source_debit = float(source_debit)
except TypeError: except TypeError:
...@@ -825,7 +825,7 @@ class Movement(XMLObject, Amount): ...@@ -825,7 +825,7 @@ class Movement(XMLObject, Amount):
Set the quantity Set the quantity
""" """
if source_credit in (None, ''): if source_credit in (None, ''):
return 0.0 return
try: try:
source_credit = float(source_credit) source_credit = float(source_credit)
except TypeError: except TypeError:
......
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