Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rejeicao: Codigo de Hash no QR-Code difere do calculado #280

Open
fcramos opened this issue Jun 10, 2020 · 0 comments
Open

Rejeicao: Codigo de Hash no QR-Code difere do calculado #280

fcramos opened this issue Jun 10, 2020 · 0 comments

Comments

@fcramos
Copy link

fcramos commented Jun 10, 2020

Estou tendo erro pra emitir NFCe, utilizo mesmo código com algumas diferenças pra gerar o modelo 55 e funciona corretamente.

params = {
    'certificado': cert,
    'obj': obj,
    'estado': str(issuer.state),
    'modelo': str(issuer.model),
    'ambiente': issuer.environment,
    'NFes': [nfe],
    'idLote': 1,
    'indSinc': 1
}

if issuer.model == 65:
    csc = issuer.csc_set.filter(environment=issuer.environment).last()
    xml = xml_autorizar_nfe(**params)
    params.update({
        'xml': gerar_qrcode(csc.index, csc.code, xml.encode('utf-8'), True).decode('utf8')
    })

nfe_response = autorizar_nfe(**params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant