Commit 0725665f authored by Yusei Tahara's avatar Yusei Tahara

Changed the type based method name. This type based method is not a getter, but a converter.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25307 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f75bc967
......@@ -132,7 +132,7 @@ class Delivery(XMLObject, ImmobilisationDelivery):
return self.Delivery_zGetTotal(src__=1, **kw)
aggregate = self.Delivery_zGetTotal(**kw)[0]
result = aggregate.total_price or 0
method = self._getTypeBasedMethod('getTotalPrice')
method = self._getTypeBasedMethod('convertTotalPrice')
if method is not None:
return method(result)
return result
......
......@@ -307,7 +307,7 @@ class Movement(XMLObject, Amount):
tmp_context = self.asContext(context=context, REQUEST=REQUEST, **kw)
result = self._getTotalPrice(default=default, context=tmp_context, fast=fast, **kw)
method = self._getTypeBasedMethod('getTotalPrice')
method = self._getTypeBasedMethod('convertTotalPrice')
if method is None:
return result
return method(result)
......
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