Commit 61257573 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: Supply Cell before Line

parent c4ba8b9a
......@@ -9,10 +9,10 @@ def sort_key_method(e):
parent = e.getParentValue()
if parent.getPortalType().endswith('Line'):
parent = parent.getParentValue()
minus = 0
minus = 0.5
else:
minus = -0.5
return 0 - 1 * int(parent.hasDestination()) + minus
minus = 0
return 0 - 1 * int(parent.hasDestination()) - minus
def filter_method(currency, destination_project, group):
def filter_by_source_function_and_group(l):
......
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