Commit 7ef5de4e authored by Jérome Perrin's avatar Jérome Perrin

ignore non accountable movements


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16374 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3996f228
......@@ -101,6 +101,8 @@ class BalanceTransaction(AccountingTransaction, Inventory):
"""Returns movements that implies only grouping by node."""
movement_list = []
for movement in self.getMovementList():
if not getattr(movement, 'isAccountable', 1):
continue
if not (movement.getSourceSection() or
movement.getDestinationPayment()):
movement_list.append(movement)
......@@ -110,6 +112,8 @@ class BalanceTransaction(AccountingTransaction, Inventory):
"""Returns movements that implies grouping by node and payment"""
movement_list = []
for movement in self.getMovementList():
if not getattr(movement, 'isAccountable', 1):
continue
if movement.getDestinationPayment():
movement_list.append(movement)
return movement_list
......@@ -118,6 +122,8 @@ class BalanceTransaction(AccountingTransaction, Inventory):
"""Returns movements that implies only grouping by node and mirror section"""
movement_list = []
for movement in self.getMovementList():
if not getattr(movement, 'isAccountable', 1):
continue
if movement.getSourceSection():
movement_list.append(movement)
return movement_list
......
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