Browse Source

[FIX] Ajustes nos templates

pull/88/head
Polibras 8 years ago
parent
commit
257b1d51cb
  1. 1
      .gitignore
  2. 2
      pytrustnfe/nfe/__init__.py
  3. 15
      pytrustnfe/nfe/templates/NFeDistribuicaoDFe.xml
  4. 3
      pytrustnfe/nfe/templates/RecepcaoEventoManifesto.xml

1
.gitignore

@ -12,3 +12,4 @@ dist/
docs/_build
.vscode/tags
.cache
.idea/

2
pytrustnfe/nfe/__init__.py

@ -282,7 +282,7 @@ def recepcao_evento_carta_correcao(certificado, **kwargs): # Assinar
def xml_recepcao_evento_manifesto(certificado, **kwargs): # Assinar
return _render(certificado, 'RecepcaoEventoManifesto', **kwargs)
return _render(certificado, 'RecepcaoEventoManifesto', True, **kwargs)
def recepcao_evento_manifesto(certificado, **kwargs): # Assinar

15
pytrustnfe/nfe/templates/NFeDistribuicaoDFe.xml

@ -9,11 +9,18 @@
<distNSU>
<ultNSU>{{ ultimo_nsu }}</ultNSU>
</distNSU>
<consChNFe>
<chNFe>{{ chave_nfe }}</chNFe>
</consChNFe>
{% if nsu is defined %}
<consNSU>
<NSU>{{ nsu }}</NSU>
</consNSU>
{% endif %}
{% if chNFe is defined %}
<consChNFe>
<chNFe>{{ chNFe }}</chNFe>
</consChNFe>
{% endif %}
</distDFeInt>
</nfeDadosMsg>
</nfeDistDFeInteresse>
</Body>
</Envelope>
</Envelope>

3
pytrustnfe/nfe/templates/RecepcaoEventoManifesto.xml

@ -1,6 +1,6 @@
<envEvento xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00">
<idLote>{{ lote }}</idLote>
<evento xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00">
<evento versao="1.00">
<infEvento Id="{{ manifesto.identificador }}">
<cOrgao>91</cOrgao>
<tpAmb>{{ ambiente }}</tpAmb>
@ -12,7 +12,6 @@
<verEvento>1.00</verEvento>
<detEvento versao="1.00">
<descEvento>{{ manifesto.event_description }}</descEvento>
<xJust>{{ manifesto.justificativa }}</xJust>
</detEvento>
</infEvento>
</evento>

Loading…
Cancel
Save