Skip to content

Commit

Permalink
Merge pull request #675 from gisce/bugfix/69332_pot_adscrita_inferior
Browse files Browse the repository at this point in the history
FIX potencia adscrita inferior a contratada
  • Loading branch information
ecarreras authored Feb 3, 2025
2 parents 8165d26 + 33cd6f3 commit c7f8ea3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libcnmc/cir_8_2021/FA1.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ def get_pot_adscrita(self, cups, year, o_potencia):
if but_ids:
o_pot_ads = max(b['pot_max_admisible'] for b in
O.GiscedataButlleti.read(but_ids, ['pot_max_admisible']))
if o_pot_ads < o_potencia:
o_pot_ads = o_potencia
if o_pot_ads < o_potencia:
o_pot_ads = o_potencia
return o_pot_ads

def get_baixa_cups(self, cups_id):
Expand Down Expand Up @@ -715,7 +715,6 @@ def consumer(self):
fields_to_read_modcon = [
'cnae',
'tarifa',
# 'tensio',
'potencia',
'polissa_id',
'data_final'
Expand Down

0 comments on commit c7f8ea3

Please sign in to comment.