[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:
parent
4b464deeee
commit
e9c5233ec1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue