Skip to content

Commit 6cf1bae

Browse files
committed
Ajuste url qrcode SP NFC-e
1 parent f87879a commit 6cf1bae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pynfe/processamento/serializacao.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,11 @@ def gerar_qrcode(self, token, csc, xml, return_qr=False):
660660

661661
if uf.upper() == 'PR':
662662
qrcode = NFCE[uf.upper()]['QR'] + url
663+
elif uf.upper() == 'SP':
664+
if tpamb == '1':
665+
qrcode = NFCE[uf.upper()]['HTTPS'] + 'www.' + NFCE[uf.upper()]['QR'] + url
666+
else:
667+
qrcode = NFCE[uf.upper()]['HTTPS'] + 'www.homologacao.' + NFCE[uf.upper()]['QR'] + url
663668
else:
664669
if tpamb == '1':
665670
qrcode = NFCE[uf.upper()]['HTTPS'] + NFCE[uf.upper()]['QR'] + url

0 commit comments

Comments
 (0)