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):
for document in object_ratio_list:
if document.getReference() == ratio_reference:
return document.getQuantity()
return None
return None
security.declareProtected(Permissions.AccessContentsInformation,
'getRatioQuantityList')
......@@ -116,13 +115,11 @@ class PaySheetTransaction(Invoice):
for annotation_line in annotation_line_list:
if (annotation_line.getReference() or annotation_line.getId()) == reference :
return annotation_line
# if not find in the paysheet, look on dependence tree
for annotation_line in self.getInheritedObjectValueList(['Annotation Line']):
if (annotation_line.getReference() or annotation_line.getId()) == reference:
return annotation_line
return None
return None
security.declareProtected(Permissions.AccessContentsInformation,
'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