[FIX] l10n_fr: use abs(v)<epsilon when checking for small value

lp bug: https://launchpad.net/bugs/1084424 fixed

bzr revid: alexandre.fayolle@camptocamp.com-20121129081248-v5qw1czyjoagls4o
This commit is contained in:
2012-11-29 09:12:48 +01:00
parent 4b464deeee
commit e9c5233ec1
1 changed files with 2 additions and 2 deletions

View File

@ -106,10 +106,10 @@ class base_report(report_sxw.rml_parse):
value=line["debit"]-line["credit"]
elif(type == "D"):
value=line["debit"]-line["credit"]
if(value<0.001): value=0.0
if(abs(value)<0.001): value=0.0
elif(type == "C"):
value=line["credit"]-line["debit"]
if(value<0.001): value=0.0
if(abs(value)<0.001): value=0.0
if(operator == '+'):
sum += value
else: