Commit 612109b8 authored by Fabien Morin's avatar Fabien Morin

typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3798fcda
...@@ -88,8 +88,7 @@ class PaySheetTransaction(Invoice): ...@@ -88,8 +88,7 @@ class PaySheetTransaction(Invoice):
for document in object_ratio_list: for document in object_ratio_list:
if document.getReference() == ratio_reference: if document.getReference() == ratio_reference:
return document.getQuantity() return document.getQuantity()
return None
return None
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getRatioQuantityList') 'getRatioQuantityList')
...@@ -116,13 +115,11 @@ class PaySheetTransaction(Invoice): ...@@ -116,13 +115,11 @@ class PaySheetTransaction(Invoice):
for annotation_line in annotation_line_list: for annotation_line in annotation_line_list:
if (annotation_line.getReference() or annotation_line.getId()) == reference : if (annotation_line.getReference() or annotation_line.getId()) == reference :
return annotation_line return annotation_line
# if not find in the paysheet, look on dependence tree # if not find in the paysheet, look on dependence tree
for annotation_line in self.getInheritedObjectValueList(['Annotation Line']): for annotation_line in self.getInheritedObjectValueList(['Annotation Line']):
if (annotation_line.getReference() or annotation_line.getId()) == reference: if (annotation_line.getReference() or annotation_line.getId()) == reference:
return annotation_line return annotation_line
return None
return None
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getAnnotationLineListList') 'getAnnotationLineListList')
......
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