From 367e455ddd32dc7f061471a9d725cf1d0f9eb6de Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Mon, 6 Nov 2017 19:55:58 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20-=20Condici=C3=B3n=20de=20pago=20en=20PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/controllers/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index cbf8825..eb6b9d0 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -878,8 +878,9 @@ def _comprobante(values, options): 'C.P. de Expedición: {}'.format(data['lugarexpedicion']) data['metododepago'] = options['metododepago'] data['formadepago'] = options['formadepago'] - data['condicionesdepago'] = \ - 'Condiciones de pago: {}'.format(data['condicionesdepago']) + if 'condicionesdepago' in data: + data['condicionesdepago'] = \ + 'Condiciones de pago: {}'.format(data['condicionesdepago']) data['moneda'] = options['moneda'] data['tipocambio'] = 'Tipo de Cambio: $ {:0.2f}'.format(