Commit 0203b803 authored by Julien Muchembled's avatar Julien Muchembled

Amount Generator: set reference from cells if available

parent 886a75e2
...@@ -374,8 +374,9 @@ class AmountGeneratorMixin: ...@@ -374,8 +374,9 @@ class AmountGeneratorMixin:
'causality_value_list': [], 'causality_value_list': [],
'efficiency': self.getEfficiency(), 'efficiency': self.getEfficiency(),
'quantity_unit': self.getQuantityUnit(), 'quantity_unit': self.getQuantityUnit(),
# XXX If they are several cells, we have duplicate references. # The trade model rule often matches by reference and fails if
'reference': reference, # getAggregatedAmountList returns amounts with same reference.
'reference': cell.getReference() or reference,
} }
# Then collect the mapped values (quantity, price, trade_phase...) # Then collect the mapped values (quantity, price, trade_phase...)
for key in cell.getMappedValuePropertyList(): for key in cell.getMappedValuePropertyList():
......
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