Skip to content

Commit

Permalink
Merge pull request #719 from Som-Energia/fix_pending_modcon_or
Browse files Browse the repository at this point in the history
fix pending modocon or
  • Loading branch information
pauboixsom authored Aug 27, 2024
2 parents a3ca347 + c4b55e4 commit 2876ec4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def get_prices_data(self, cursor, uid, pol, context=None): # noqa: C901
ultima_modcon.mode_facturacio == 'index'
modcon_pendent_periodes = ultima_modcon.state == 'pendent' and \
ultima_modcon.mode_facturacio == 'atr'
if modcon_pendent_indexada or modcon_pendent_indexada:
if modcon_pendent_indexada or modcon_pendent_periodes:
ctx.update({'force_pricelist': pol.modcontractuals_ids[0].llista_preu.id})
if polissa.data_baixa:
ctx = {'date': datetime.strptime(polissa.data_baixa, '%Y-%m-%d')}
Expand Down

0 comments on commit 2876ec4

Please sign in to comment.