Commit fe231746 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_core: remain zero

parent 062b9867
......@@ -417,7 +417,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
quantity = self.getQuantity()
if quantity :
source_asset_price = self.getSourceAssetPrice()
if source_asset_price :
if source_asset_price is not None:
return source_asset_price * - quantity
return None
......@@ -461,7 +461,7 @@ class Movement(XMLObject, Amount, CompositionMixin, AmountGeneratorMixin):
quantity = self.getQuantity()
if quantity :
destination_asset_price = self.getDestinationAssetPrice()
if destination_asset_price :
if destination_asset_price is not None:
return destination_asset_price * quantity
return None
......
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