Skip to content

Commit

Permalink
Ara si
Browse files Browse the repository at this point in the history
  • Loading branch information
eberloso committed Dec 1, 2023
1 parent 06c2f71 commit 11486ea
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions gestionatr/input/messages/B70.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,15 +532,9 @@ def listaconceptos(self):
return data

def get_coeficientecortoplazo(self):
obj = self.obj
if (hasattr(obj, 'listaconceptos') and
hasattr(obj.listaconceptos, 'concepto')):
for d in obj.listaconceptos.concepto:
try:
if d.coeficientecortoplazo and float(d.coeficientecortoplazo):
return float(d.coeficientecortoplazo)
except Exception as e:
pass
for d in self.listaconceptos:
if d.coeficientecortoplazo and float(d.coeficientecortoplazo):
return float(d.coeficientecortoplazo)
return 0.0

@property
Expand Down

0 comments on commit 11486ea

Please sign in to comment.