Commit caadbf43 authored by Romain Courteaud's avatar Romain Courteaud

Transformation needs to get properties defined on the transformation line

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@34806 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b98d9cd0
...@@ -170,12 +170,12 @@ class AmountGeneratorMixin: ...@@ -170,12 +170,12 @@ class AmountGeneratorMixin:
# Try to collect cells and aggregate their mapped properties # Try to collect cells and aggregate their mapped properties
# using resource + variation as aggregation key or base_application # using resource + variation as aggregation key or base_application
# for intermediate lines # for intermediate lines
amount_generator_cell_list = self.contentValues( amount_generator_cell_list = [self] + self.contentValues(
portal_type=amount_generator_cell_type_list) portal_type=amount_generator_cell_type_list)
resource_amount_aggregate = {} # aggregates final line information resource_amount_aggregate = {} # aggregates final line information
value_amount_aggregate = {} # aggregates intermediate line information value_amount_aggregate = {} # aggregates intermediate line information
for amount_generator_cell in amount_generator_cell_list or (self,): for amount_generator_cell in amount_generator_cell_list:
if not amount_generator_cell.test(delivery_amount): if not amount_generator_cell.test(delivery_amount):
continue continue
base_application_list = amount_generator_cell.getBaseApplicationList() base_application_list = amount_generator_cell.getBaseApplicationList()
......
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