Skip to content

Commit

Permalink
FIx get_coeficientecortoplazo
Browse files Browse the repository at this point in the history
  • Loading branch information
eberloso committed Dec 1, 2023
1 parent cff3a96 commit 06c2f71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gestionatr/input/messages/B70.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,11 @@ def get_coeficientecortoplazo(self):
if (hasattr(obj, 'listaconceptos') and
hasattr(obj.listaconceptos, 'concepto')):
for d in obj.listaconceptos.concepto:
if d.coeficientecortoplazo and float(d.coeficientecortoplazo):
return float(d.coeficientecortoplazo)
try:
if d.coeficientecortoplazo and float(d.coeficientecortoplazo):
return float(d.coeficientecortoplazo)
except Exception as e:
pass
return 0.0

@property
Expand Down

0 comments on commit 06c2f71

Please sign in to comment.