Commit 5df0f2b7 authored by Julien Muchembled's avatar Julien Muchembled

Fix PaySheetTransaction wrt r37780

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37797 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfc0246a
...@@ -150,12 +150,13 @@ class PaySheetTransaction(Invoice): ...@@ -150,12 +150,13 @@ class PaySheetTransaction(Invoice):
security.declarePrivate('updateAggregatedAmountList') security.declarePrivate('updateAggregatedAmountList')
def updateAggregatedAmountList(self, *args, **kw): def updateAggregatedAmountList(self, *args, **kw):
amount_dict = dict(((x.reference, tuple(x.getVariationCategoryList())), x) amount_dict = dict(((x.getReference(),
tuple(x.getVariationCategoryList())), x)
for x in self.getAggregatedAmountList(*args, **kw)) for x in self.getAggregatedAmountList(*args, **kw))
movement_to_delete_list = [] movement_to_delete_list = []
for movement in self.getMovementList(): for movement in self.getMovementList():
if movement.getBaseApplication(): if movement.getBaseApplication():
amount = amount_dict.pop((movement.getProperty('reference'), amount = amount_dict.pop((movement.getReference(),
tuple(movement.getVariationCategoryList())), tuple(movement.getVariationCategoryList())),
None) None)
if amount is None: if amount is None:
......
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