forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into coverage_receb1
- Loading branch information
Showing
184 changed files
with
22,154 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[WSAA] | ||
CERT = reingart.crt | ||
PRIVATEKEY = reingart.key | ||
## URL = https: //wsaa.afip.gov.ar/ws/services/LoginCms | ||
|
||
[WSLSP] | ||
CUIT = 20267565393 | ||
INPUT = invoices.csv | ||
OUTPUT = OUTPUT.txt | ||
ENTRADA=entrada.txt | ||
SALIDA=salida.txt | ||
## URL = https: //serviciosjava.afip.gob.ar/wslsp/LumService? Wsdl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[WSAA] | ||
CERT = reingart.crt | ||
PRIVATEKEY = reingart.key | ||
## URL = https: //wsaa.afip.gov.ar/ws/services/LoginCms | ||
|
||
[WSLTV] | ||
CUIT = 20267565393 | ||
INPUT = invoices.csv | ||
OUTPUT = OUTPUT.txt | ||
ENTRADA=entrada.txt | ||
SALIDA=salida.txt | ||
## URL = https: //serviciosjava.afip.gob.ar/wsltv/LtvService? Wsdl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf8 -*- | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as published by the | ||
# Free Software Foundation; either version 3, or (at your option) any later | ||
# version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY | ||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License | ||
# for more details. | ||
|
||
"""Módulo para acceder a web services de la afip | ||
""" | ||
__author__ = "Mariano Reingart ([email protected])" | ||
__copyright__ = "Copyright (C) 2008-2021 Mariano Reingart" | ||
__license__ = "LGPL-3.0-or-later" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
"Módulo para generar códigos QR" | ||
from __future__ import print_function | ||
|
||
from __future__ import unicode_literals | ||
from builtins import object | ||
|
||
__author__ = "Mariano Reingart <[email protected]>" | ||
|
@@ -120,7 +120,7 @@ def GenerarImagen( | |
|
||
# convertir a representación json y codificar en base64: | ||
datos_cmp_json = json.dumps(datos_cmp) | ||
url = self.URL % (base64.b64encode(datos_cmp_json)) | ||
url = self.URL % (base64.b64encode(datos_cmp_json.encode('ascii')).decode('ascii')) | ||
|
||
qr = qrcode.QRCode( | ||
version=self.qr_ver, | ||
|
@@ -171,7 +171,7 @@ def main(): | |
tipo_doc_rec, | ||
nro_doc_rec, | ||
tipo_cod_aut, | ||
cod_aut, | ||
cod_aut | ||
) = args | ||
else: | ||
ver = 1 | ||
|
@@ -257,10 +257,12 @@ def main(): | |
|
||
if not "--mostrar" in sys.argv: | ||
pass | ||
elif sys.platform == "linux2": | ||
elif sys.platform == "linux2" or sys.platform == "linux": | ||
os.system("eog " "%s" "" % pyqr.Archivo) | ||
else: | ||
os.startfile(pyqr.archivo) | ||
os.startfile(pyqr.Archivo) | ||
|
||
return url | ||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.