Skip to content

Commit

Permalink
[FIX] l10n_uy_edi: Fix en caso de que no exista ninguna adenda
Browse files Browse the repository at this point in the history
Ticket: 66581
Part-of: #149
  • Loading branch information
mem-adhoc committed Oct 3, 2023
1 parent 999580c commit ab84411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_uy_edi/models/l10n_uy_cfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,8 @@ def _get_report_params(self):
# En caso de que el contenido de las adendas sea mayor a 799 caracteres, la adenda se imprimira en
# la segunda pagina de forma automatica, caso contrario, el cliente podra elegir el tipo de reporte que quiera
# Si no elige ningun tipo de reporte, se imprimira el default de uruware

if len(self._l10n_uy_get_cfe_adenda().get('Adenda')) > 799:
adenda = self._l10n_uy_get_cfe_adenda().get('Adenda')
if adenda and len(adenda) > 799:
report_params = [['adenda'],['true']]
else:
#En caso de que el cliente eliga el reporte que quiere imprimir
Expand Down

0 comments on commit ab84411

Please sign in to comment.