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

amount_generator: some clean up in getAggregatedAmountList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42685 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00192da3
...@@ -344,9 +344,6 @@ class AmountGeneratorMixin: ...@@ -344,9 +344,6 @@ class AmountGeneratorMixin:
Implementation of a generic transformation algorith which is Implementation of a generic transformation algorith which is
applicable to payroll, tax generation and BOMs. Return the applicable to payroll, tax generation and BOMs. Return the
list of amounts with aggregation. list of amounts with aggregation.
TODO:
- make working sample code
""" """
generated_amount_list = self.getGeneratedAmountList( generated_amount_list = self.getGeneratedAmountList(
amount_list=amount_list, rounding=rounding, amount_list=amount_list, rounding=rounding,
...@@ -377,9 +374,3 @@ class AmountGeneratorMixin: ...@@ -377,9 +374,3 @@ class AmountGeneratorMixin:
% (x.getResourceTitle(), x.getQuantity(), x.getPrice()) % (x.getResourceTitle(), x.getQuantity(), x.getPrice())
for x in result_list)) for x in result_list))
return result_list return result_list
raise NotImplementedError
# Example of return code
result = self.getGeneratedAmountList(amount_list=amount_list,
rounding=rounding)
return SomeMovementGroup(result)
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