Commit 128e02c4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a mistake in the previous commit.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35598 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cbf84e11
...@@ -228,7 +228,7 @@ class Movement(XMLObject, Amount, CompositionMixin): ...@@ -228,7 +228,7 @@ class Movement(XMLObject, Amount, CompositionMixin):
def _getBaseUnitPrice(self, context): def _getBaseUnitPrice(self, context):
# Override Amount._getBaseUnitPrice to use Movement's # Override Amount._getBaseUnitPrice to use Movement's
# getPriceCalculationOperandDict instead of Resource's. # getPriceCalculationOperandDict instead of Resource's.
operand_dict = context.getPriceParameterDict(context=context) operand_dict = context.getPriceCalculationOperandDict(context=context)
if operand_dict is not None: if operand_dict is not None:
base_unit_price = operand_dict.get('base_unit_price', None) base_unit_price = operand_dict.get('base_unit_price', None)
return base_unit_price return base_unit_price
......
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