Skip to content

Commit

Permalink
Ajuste url qrcode SP NFC-e
Browse files Browse the repository at this point in the history
  • Loading branch information
juniortada committed Jun 19, 2017
1 parent f87879a commit 6cf1bae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pynfe/processamento/serializacao.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,11 @@ def gerar_qrcode(self, token, csc, xml, return_qr=False):

if uf.upper() == 'PR':
qrcode = NFCE[uf.upper()]['QR'] + url
elif uf.upper() == 'SP':
if tpamb == '1':
qrcode = NFCE[uf.upper()]['HTTPS'] + 'www.' + NFCE[uf.upper()]['QR'] + url
else:
qrcode = NFCE[uf.upper()]['HTTPS'] + 'www.homologacao.' + NFCE[uf.upper()]['QR'] + url
else:
if tpamb == '1':
qrcode = NFCE[uf.upper()]['HTTPS'] + NFCE[uf.upper()]['QR'] + url
Expand Down

0 comments on commit 6cf1bae

Please sign in to comment.