From f1435e0e8a2e6c0cf32d26c12ef7031e44ebd640 Mon Sep 17 00:00:00 2001 From: "Carlos R. Silveira" Date: Tue, 19 Jun 2018 19:27:44 -0300 Subject: [PATCH] =?UTF-8?q?Ajustando=20as=20informa=C3=A7=C3=B5es=20de=20P?= =?UTF-8?q?agamentos.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 31 +++++++++++++++++------------ 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index 89f6eac..38eedd7 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -766,21 +766,26 @@ {% endif %} {% endif %} - + {% if NFe.infNFe.pag is defined %} + {% for pag in NFe.infNFe.pag %} - {{ pag.tPag }} - {{ pag.vPag }} - {% if pag.card is defined %} - - {{ pag.card.CNPJ }} - {{ pag.card.tBand }} - {{ pag.card.cAut }} - - {% endif %} + + {% for pg in NFe.infNFe.pag.detPag %} + {{ pg.tPag }} + {{ pg.vPag }} + {% if pag.card is defined %} + + {{ pag.card.CNPJ }} + {{ pag.card.tBand }} + {{ pag.card.cAut }} + + {% endif %} + {% endfor %} + + {{ pag.vTroco }} - + {% endfor %} + {% endif %} {{ NFe.infNFe.infAdic.infAdFisco|normalize|escape }} {{ NFe.infNFe.infAdic.infCpl|normalize|escape }}