Commit 370ad929 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2010-05-27 yo

* Resource_getPriceCalculationOperandDict must return base_unit_price even if price is not found. So the meaning of the default parameter has changed slightly - now it represents the default value of price instead of the default value of the returned result. This way is more backward compatible.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35665 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cfb1bad8
......@@ -110,9 +110,9 @@ if base_price not in (None, \'\'):\n
unit_base_price /= priced_quantity\n
\n
# Return result\n
if unit_base_price is not None:\n
return dict(price=unit_base_price, base_unit_price=price_parameter_dict.get(\'base_unit_price\'))\n
return default\n
if unit_base_price is None:\n
unit_base_price = default\n
return dict(price=unit_base_price, base_unit_price=price_parameter_dict.get(\'base_unit_price\'))\n
</string> </value>
</item>
<item>
......
2010-05-27 yo
* Resource_getPriceCalculationOperandDict must return base_unit_price even if price is not found. So the meaning of the default parameter has changed slightly - now it represents the default value of price instead of the default value of the returned result. This way is more backward compatible.
2010-05-26 yo
* Now the Resource_getPriceCalculationOperandDict must include base_unit_price, as the script is shared with getPrice and getBaseUnitPrice.
......
499
\ No newline at end of file
500
\ No newline at end of file
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