Commit 13bdc4f2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use getBaseUnitQuantity() instead of 10 ** getQuantityPrecision().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6cd9d7f5
......@@ -102,8 +102,7 @@ class FloatDivergenceTester(Predicate, DivergenceTesterMixin):
tolerance_base = self.getProperty('tolerance_base')
if tolerance_base == 'currency_precision':
try:
precision = prevision_movement.getSectionValue().getPriceCurrencyValue().getQuantityPrecision()
base = 10 ** -precision
base = prevision_movement.getSectionValue().getPriceCurrencyValue().getBaseUnitQuantity()
except AttributeError:
base = None
elif tolerance_base == 'quantity':
......
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