From 08c334b979a7a62af2fa0ab9cc8b6615a9409632 Mon Sep 17 00:00:00 2001 From: maiconkkl Date: Wed, 15 May 2019 12:55:50 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7ao=20do=20erro=20gerado=20na=20mudan?= =?UTF-8?q?=C3=A7a=20de=20versao=201.0.37=20File=20"/usr/local/lib/python3?= =?UTF-8?q?.5/dist-packages/PyTrustNFe3-1.0.37-py3.5.egg/pytrustnfe/nfe/te?= =?UTF-8?q?mplates/NfeAutorizacao.xml",=20line=20262,=20in=20top-level=20t?= =?UTF-8?q?emplate=20code=20=20=20=20=20{{=20NFe.infNFe.compra.xPed?= =?UTF-8?q?=20}}=20=20=20File=20"/usr/lib/python3/dist-packages/jin?= =?UTF-8?q?ja2/environment.py",=20line=20408,=20in=20getattr=20=20=20=20?= =?UTF-8?q?=20return=20getattr(obj,=20attribute)=20jinja2.exceptions.Undef?= =?UTF-8?q?inedError:=20'dict=20object'=20has=20no=20attribute=20'compra'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytrustnfe/nfe/templates/NfeAutorizacao.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytrustnfe/nfe/templates/NfeAutorizacao.xml b/pytrustnfe/nfe/templates/NfeAutorizacao.xml index 4bec6b6..0eb2e3c 100644 --- a/pytrustnfe/nfe/templates/NfeAutorizacao.xml +++ b/pytrustnfe/nfe/templates/NfeAutorizacao.xml @@ -259,7 +259,9 @@ {% endfor %} {% endif %} + {% if NFe.infNFe.compra is defined %} {{ NFe.infNFe.compra.xPed }} + {% endif %} {{ prod.nItemPed }} {{ prod.nFCI }} {% for rastro in prod.rastro %}