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. 9
      pytrustnfe/nfe/templates/NFeDistribuicaoDFe.xml
  4. 3
      pytrustnfe/nfe/templates/RecepcaoEventoManifesto.xml

1
.gitignore

@ -12,3 +12,4 @@ dist/
docs/_build docs/_build
.vscode/tags .vscode/tags
.cache .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 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 def recepcao_evento_manifesto(certificado, **kwargs): # Assinar

9
pytrustnfe/nfe/templates/NFeDistribuicaoDFe.xml

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

3
pytrustnfe/nfe/templates/RecepcaoEventoManifesto.xml

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

Loading…
Cancel
Save