• Nicolas Dumazet's avatar
    Fix durably getAggregatedAmount issues: · 74838d44
    Nicolas Dumazet authored
    * both Transformation and TransformedResource should support a context
      passing a multiple quantity. The proper way to do so is to deleguate
      quantity computation to Transformation Lines, and then to pull the result
      up to aggregate it in Transformations.
    * Fix a quirk in TransformationRule that was induced by the wrong
      behaviour of TransformedResource.getAggregatedAmountList: noone should
      need to multiply the amounts returned by getAggregatedAmountList, as
      the method should already include the computed quantities.
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33830 20353a03-c40f-0410-a6d1-a30d3c3de9de
    74838d44
Transformation.py 13.1 KB