ninobaldo
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
pytrustnfe/nfse/ginfes/__init__.py
|
|
@ -20,6 +20,8 @@ def _render(certificado, method, **kwargs): |
|
|
reference = "" |
|
|
reference = "" |
|
|
if method == "RecepcionarLoteRpsV3": |
|
|
if method == "RecepcionarLoteRpsV3": |
|
|
reference = "rps%s" % kwargs["nfse"]["lista_rps"][0]["numero"] |
|
|
reference = "rps%s" % kwargs["nfse"]["lista_rps"][0]["numero"] |
|
|
|
|
|
elif method == "CancelarNfseV3": |
|
|
|
|
|
reference = "C%s" % kwargs["cancelamento"]["numero_nfse"] |
|
|
|
|
|
|
|
|
signer = Assinatura(certificado.pfx, certificado.password) |
|
|
signer = Assinatura(certificado.pfx, certificado.password) |
|
|
xml_send = signer.assina_xml(xml_send, reference) |
|
|
xml_send = signer.assina_xml(xml_send, reference) |
|
|
|