From 4cb0aad9cc3cfe977d940fc3579338fc28936d9d Mon Sep 17 00:00:00 2001 From: satcfdi Date: Wed, 8 Jan 2025 21:28:04 -0600 Subject: [PATCH] Fixed TotalImpuestosTrasladados --- satcfdi/create/compute.py | 8 +- tests/test_create_cfdi40.py | 47 +++ .../h&e951128469_ingreso_exento.pretty.py | 5 +- .../h&e951128469_ingreso_exento.xml | 4 +- .../h&e951128469_ingreso_exento_stamped.html | 8 +- ...951128469_ingreso_exento_stamped.pretty.py | 9 +- .../h&e951128469_ingreso_exento_stamped.xml | 6 +- ...h&e951128469_ingreso_ieps_exento.pretty.py | 5 +- .../h&e951128469_ingreso_ieps_exento.xml | 4 +- ...951128469_ingreso_ieps_exento_stamped.html | 8 +- ...8469_ingreso_ieps_exento_stamped.pretty.py | 9 +- ...e951128469_ingreso_ieps_exento_stamped.xml | 6 +- tests/test_create_cfdi40/iva_exento.html | 322 ++++++++++++++++++ tests/test_create_cfdi40/iva_exento.pretty.py | 60 ++++ tests/test_create_cfdi40/iva_exento.xml | 20 ++ .../xiqb891116qe4_ingreso_exento.pretty.py | 3 +- .../xiqb891116qe4_ingreso_exento.xml | 4 +- .../xiqb891116qe4_ingreso_exento_stamped.html | 8 +- ...891116qe4_ingreso_exento_stamped.pretty.py | 7 +- .../xiqb891116qe4_ingreso_exento_stamped.xml | 6 +- 20 files changed, 498 insertions(+), 51 deletions(-) create mode 100644 tests/test_create_cfdi40/iva_exento.html create mode 100644 tests/test_create_cfdi40/iva_exento.pretty.py create mode 100644 tests/test_create_cfdi40/iva_exento.xml diff --git a/satcfdi/create/compute.py b/satcfdi/create/compute.py index f501c4c..8caafea 100644 --- a/satcfdi/create/compute.py +++ b/satcfdi/create/compute.py @@ -106,11 +106,15 @@ def make_impuestos(conceptos): if retenciones := impuestos.get('Retenciones'): impuestos['Retenciones'] = retenciones - impuestos['TotalImpuestosRetenidos'] = sum(i["Importe"] for i in retenciones if i["Importe"]) + imp = list(i["Importe"] for i in retenciones if i["Importe"] is not None) + if imp: + impuestos['TotalImpuestosRetenidos'] = sum(imp) if traslados := impuestos.get('Traslados'): impuestos['Traslados'] = traslados - impuestos['TotalImpuestosTrasladados'] = sum(i["Importe"] for i in traslados if i["Importe"]) + imp = list(i["Importe"] for i in traslados if i["Importe"] is not None) + if imp: + impuestos['TotalImpuestosTrasladados'] = sum(imp) return impuestos or None diff --git a/tests/test_create_cfdi40.py b/tests/test_create_cfdi40.py index 35d3330..6a8d84a 100644 --- a/tests/test_create_cfdi40.py +++ b/tests/test_create_cfdi40.py @@ -377,3 +377,50 @@ def test_nomina(): invoice.sign(signer) verify_invoice(invoice, f"{xml_file}") + + +def test_iva_exento(): + rfc = 'xiqb891116qe4' + signer = get_signer(rfc) + + invoice = cfdi40.Comprobante( + emisor=cfdi40.Emisor( + rfc=signer.rfc, + nombre=signer.legal_name, + regimen_fiscal="601" + ), + lugar_expedicion="56820", + fecha=datetime.fromisoformat("2020-01-01T22:40:38"), + receptor=cfdi40.Receptor( + rfc='KIJ0906199R1', + nombre='KIJ, S.A DE C.V.', + uso_cfdi='G03', + domicilio_fiscal_receptor="59820", + regimen_fiscal_receptor="601" + ), + metodo_pago='PPD', + serie="A", + folio="123456", + conceptos=[ + cfdi40.Concepto( + cuenta_predial='1234567890', + clave_prod_serv='10101702', + cantidad=Decimal('1.00'), + clave_unidad='E48', + descripcion='SERVICIOS DE FACTURACION', + valor_unitario=Decimal('15390.30'), + impuestos=cfdi40.Impuestos( + traslados=cfdi40.Traslado( + impuesto=Impuesto.IVA, + tipo_factor=TipoFactor.EXENTO, + importe=None, + tasa_o_cuota=None + ) + ), + ) + ] + ) + invoice.sign(signer) + + verify_invoice(invoice, "iva_exento") + diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_exento.pretty.py b/tests/test_create_cfdi40/h&e951128469_ingreso_exento.pretty.py index 63135f9..9d00339 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_exento.pretty.py +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_exento.pretty.py @@ -34,8 +34,7 @@ 'Fecha': datetime.datetime(2020, 1, 1, 22, 40, 38), 'Folio': '123456', 'FormaPago': None, - 'Impuestos': {'TotalImpuestosTrasladados': 0, - 'Traslados': [{'Base': Decimal('15390.30'), + 'Impuestos': {'Traslados': [{'Base': Decimal('15390.30'), 'Importe': None, 'Impuesto': , 'TasaOCuota': None, @@ -52,7 +51,7 @@ 'ResidenciaFiscal': None, 'Rfc': 'KIJ0906199R1', 'UsoCFDI': 'G03'}, - 'Sello': 'ITnWt9XD28y3p9TifH554OrrvBoPcnsr+v33Tkhq+P+XD1tqg3dsKnC6GqYJezTdCbdpS9+VOaAK6b7/0Efw5KmwRKJ/zXHcdaG5vjHNoAljH+HHu/t4gbK+ToSkLnT2mSEr8dbGeUWMUXsu/yTonZQfw0aXcd8NXxwCJeB/EH1sAlAesZ1uMMVdcNhbOfiDPwFuMuGaKvTXj6pRpbU4SdZ5BKboqyOBfiBtXC+B/n8R/NoniMs+SAhPj9QF4hFPh5v62eFFrP1/KeK16uwHhUaF4VQmqvIgKmoh84kaFhXLXRLD80q0ShgfnYWof8uDZH7o7fIon02FMDUxSZdmgQ==', + 'Sello': 'aR5o+/+GiFVZG1csiz01f1IuDtW/R/FpgKHViqpF/61rb//fzaoea2aqj8Z4PSiduekpZW+GFC8g/yQrVbKTBeymIyJinBogcqChMVlu9wIw2CbVYk7zJ3ts+ieD6e1eoyc7w0BJk3WfHrdOwEQY8saSVItouOZ71vMWuvGGpRyhx+xzFJM3W2C85KdXrH/baS3Cxo89ekpKhpU9Qh4cP8YnVm6kNjUyx2QIfdjHN6Tx5d2NKofvHgvJx2cTTALNWR0sbLpJeBZk7pt8mg/nzyEqcUQ1q/jYl3wmzlq67OIJuefrp0GGi6b1zncwV4vWWZ15KOrt4TpGRCdHVwuXQg==', 'Serie': 'A', 'SubTotal': Decimal('15390.30'), 'TipoCambio': None, diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_exento.xml b/tests/test_create_cfdi40/h&e951128469_ingreso_exento.xml index 233be0f..59b1324 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_exento.xml +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_exento.xml @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.html b/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.html index aa136cb..9d13cb2 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.html +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.html @@ -334,13 +334,13 @@

Timbre Fiscal Digital

- QR Code + QR Code
- Sello del CFDI: I​T​n​W​t​9​X​D​2​8​y​3​p​9​T​i​f​H​5​5​4​O​r​r​v​B​o​P​c​n​s​r​+​v​3​3​T​k​h​q​+​P​+​X​D​1​t​q​g​3​d​s​K​n​C​6​G​q​Y​J​e​z​T​d​C​b​d​p​S​9​+​V​O​a​A​K​6​b​7​/​0​E​f​w​5​K​m​w​R​K​J​/​z​X​H​c​d​a​G​5​v​j​H​N​o​A​l​j​H​+​H​H​u​/​t​4​g​b​K​+​T​o​S​k​L​n​T​2​m​S​E​r​8​d​b​G​e​U​W​M​U​X​s​u​/​y​T​o​n​Z​Q​f​w​0​a​X​c​d​8​N​X​x​w​C​J​e​B​/​E​H​1​s​A​l​A​e​s​Z​1​u​M​M​V​d​c​N​h​b​O​f​i​D​P​w​F​u​M​u​G​a​K​v​T​X​j​6​p​R​p​b​U​4​S​d​Z​5​B​K​b​o​q​y​O​B​f​i​B​t​X​C​+​B​/​n​8​R​/​N​o​n​i​M​s​+​S​A​h​P​j​9​Q​F​4​h​F​P​h​5​v​6​2​e​F​F​r​P​1​/​K​e​K​1​6​u​w​H​h​U​a​F​4​V​Q​m​q​v​I​g​K​m​o​h​8​4​k​a​F​h​X​L​X​R​L​D​8​0​q​0​S​h​g​f​n​Y​W​o​f​8​u​D​Z​H​7​o​7​f​I​o​n​0​2​F​M​D​U​x​S​Z​d​m​g​Q​=​=
- Sello del SAT: B​s​+​W​7​E​i​R​2​A​u​n​l​7​b​w​l​w​+​P​7​/​C​g​3​M​M​S​j​Y​i​/​r​B​I​D​h​X​Q​R​F​C​P​Z​M​7​c​l​o​k​x​5​1​h​V​G​N​Z​q​h​w​A​/​n​o​G​G​C​P​t​G​P​P​L​r​Z​V​O​J​i​L​9​5​b​t​9​D​M​j​L​8​Y​b​K​p​B​p​t​B​G​+​x​G​G​p​E​r​P​I​D​b​6​x​H​U​d​v​a​+​J​m​Y​/​n​Q​6​l​1​v​p​6​O​d​f​U​m​D​t​8​H​4​v​m​p​u​4​u​s​d​t​D​V​4​g​z​8​G​U​P​7​u​j​O​d​d​B​j​m​m​k​h​U​R​3​y​Q​Q​p​b​9​s​/​R​l​C​J​n​F​U​j​/​X​t​e​f​y​a​7​Z​I​a​3​M​F​e​V​W​n​x​s​y​A​T​/​8​t​D​d​x​E​m​y​d​c​w​7​w​R​h​B​Y​G​m​p​7​z​K​8​C​0​i​/​4​U​y​9​K​G​J​Q​C​e​d​4​k​q​U​t​/​p​4​D​/​I​O​y​q​/​X​K​r​+​G​k​Y​F​o​f​i​w​5​i​V​P​F​b​r​j​v​f​F​v​5​u​f​e​e​w​5​+​q​L​z​4​3​y​y​Q​5​V​v​s​0​v​d​A​g​E​h​p​C​7​X​1​S​K​u​r​X​T​k​1​6​R​W​4​z​C​a​k​k​w​=​=
- Cadena Original del Timbre Fiscal: |​|​1​.​1​|​6​d​7​4​3​4​a​6​-​e​3​f​2​-​4​7​a​d​-​9​e​4​c​-​0​8​8​4​9​9​4​6​a​f​a​0​|​2​0​2​0​-​0​1​-​1​1​T​0​0​:​0​0​:​0​0​|​S​A​T​9​7​0​7​0​1​N​N​3​|​I​T​n​W​t​9​X​D​2​8​y​3​p​9​T​i​f​H​5​5​4​O​r​r​v​B​o​P​c​n​s​r​+​v​3​3​T​k​h​q​+​P​+​X​D​1​t​q​g​3​d​s​K​n​C​6​G​q​Y​J​e​z​T​d​C​b​d​p​S​9​+​V​O​a​A​K​6​b​7​/​0​E​f​w​5​K​m​w​R​K​J​/​z​X​H​c​d​a​G​5​v​j​H​N​o​A​l​j​H​+​H​H​u​/​t​4​g​b​K​+​T​o​S​k​L​n​T​2​m​S​E​r​8​d​b​G​e​U​W​M​U​X​s​u​/​y​T​o​n​Z​Q​f​w​0​a​X​c​d​8​N​X​x​w​C​J​e​B​/​E​H​1​s​A​l​A​e​s​Z​1​u​M​M​V​d​c​N​h​b​O​f​i​D​P​w​F​u​M​u​G​a​K​v​T​X​j​6​p​R​p​b​U​4​S​d​Z​5​B​K​b​o​q​y​O​B​f​i​B​t​X​C​+​B​/​n​8​R​/​N​o​n​i​M​s​+​S​A​h​P​j​9​Q​F​4​h​F​P​h​5​v​6​2​e​F​F​r​P​1​/​K​e​K​1​6​u​w​H​h​U​a​F​4​V​Q​m​q​v​I​g​K​m​o​h​8​4​k​a​F​h​X​L​X​R​L​D​8​0​q​0​S​h​g​f​n​Y​W​o​f​8​u​D​Z​H​7​o​7​f​I​o​n​0​2​F​M​D​U​x​S​Z​d​m​g​Q​=​=​|​3​0​0​0​1​0​0​0​0​0​0​4​0​0​0​0​2​4​6​0​|​| + Sello del CFDI: a​R​5​o​+​/​+​G​i​F​V​Z​G​1​c​s​i​z​0​1​f​1​I​u​D​t​W​/​R​/​F​p​g​K​H​V​i​q​p​F​/​6​1​r​b​/​/​f​z​a​o​e​a​2​a​q​j​8​Z​4​P​S​i​d​u​e​k​p​Z​W​+​G​F​C​8​g​/​y​Q​r​V​b​K​T​B​e​y​m​I​y​J​i​n​B​o​g​c​q​C​h​M​V​l​u​9​w​I​w​2​C​b​V​Y​k​7​z​J​3​t​s​+​i​e​D​6​e​1​e​o​y​c​7​w​0​B​J​k​3​W​f​H​r​d​O​w​E​Q​Y​8​s​a​S​V​I​t​o​u​O​Z​7​1​v​M​W​u​v​G​G​p​R​y​h​x​+​x​z​F​J​M​3​W​2​C​8​5​K​d​X​r​H​/​b​a​S​3​C​x​o​8​9​e​k​p​K​h​p​U​9​Q​h​4​c​P​8​Y​n​V​m​6​k​N​j​U​y​x​2​Q​I​f​d​j​H​N​6​T​x​5​d​2​N​K​o​f​v​H​g​v​J​x​2​c​T​T​A​L​N​W​R​0​s​b​L​p​J​e​B​Z​k​7​p​t​8​m​g​/​n​z​y​E​q​c​U​Q​1​q​/​j​Y​l​3​w​m​z​l​q​6​7​O​I​J​u​e​f​r​p​0​G​G​i​6​b​1​z​n​c​w​V​4​v​W​W​Z​1​5​K​O​r​t​4​T​p​G​R​C​d​H​V​w​u​X​Q​g​=​=
+ Sello del SAT: O​F​E​r​2​i​+​l​/​7​j​u​c​J​K​7​s​y​+​i​u​f​f​M​s​9​w​+​7​b​W​4​o​L​p​b​4​u​g​O​H​R​q​6​h​b​R​n​H​e​g​O​U​V​/​O​M​W​Z​6​R​K​K​p​n​X​q​9​Y​B​e​N​I​W​G​C​e​n​n​E​T​d​7​y​3​G​I​B​Q​z​8​S​x​N​M​k​s​k​i​K​v​m​I​E​1​3​D​B​k​I​u​O​w​n​Z​X​0​G​F​9​3​o​s​K​O​K​2​f​c​q​z​X​/​B​x​J​H​E​5​F​C​J​j​l​r​s​j​8​c​W​e​I​s​M​O​m​T​A​H​b​0​F​m​Y​m​+​T​i​8​c​V​h​A​S​B​0​S​j​H​H​m​O​n​5​Z​r​4​x​G​I​G​L​d​y​I​x​a​e​w​V​t​0​e​K​q​I​j​J​c​o​6​0​s​i​a​1​d​+​x​L​U​a​f​0​w​K​r​J​n​i​p​E​I​i​v​t​2​c​V​H​V​K​L​n​B​c​U​2​B​M​H​0​0​J​E​R​E​R​m​z​t​6​O​g​v​y​j​U​Y​o​/​w​6​6​P​L​L​b​P​t​t​4​Q​G​F​B​x​u​a​F​N​1​8​5​6​A​P​n​i​j​T​s​0​s​b​l​K​N​A​t​f​A​F​V​X​5​o​t​8​w​A​R​Q​S​2​q​f​q​k​i​E​M​k​H​+​2​z​K​x​q​O​g​=​=
+ Cadena Original del Timbre Fiscal: |​|​1​.​1​|​6​d​7​4​3​4​a​6​-​e​3​f​2​-​4​7​a​d​-​9​e​4​c​-​0​8​8​4​9​9​4​6​a​f​a​0​|​2​0​2​0​-​0​1​-​1​1​T​0​0​:​0​0​:​0​0​|​S​A​T​9​7​0​7​0​1​N​N​3​|​a​R​5​o​+​/​+​G​i​F​V​Z​G​1​c​s​i​z​0​1​f​1​I​u​D​t​W​/​R​/​F​p​g​K​H​V​i​q​p​F​/​6​1​r​b​/​/​f​z​a​o​e​a​2​a​q​j​8​Z​4​P​S​i​d​u​e​k​p​Z​W​+​G​F​C​8​g​/​y​Q​r​V​b​K​T​B​e​y​m​I​y​J​i​n​B​o​g​c​q​C​h​M​V​l​u​9​w​I​w​2​C​b​V​Y​k​7​z​J​3​t​s​+​i​e​D​6​e​1​e​o​y​c​7​w​0​B​J​k​3​W​f​H​r​d​O​w​E​Q​Y​8​s​a​S​V​I​t​o​u​O​Z​7​1​v​M​W​u​v​G​G​p​R​y​h​x​+​x​z​F​J​M​3​W​2​C​8​5​K​d​X​r​H​/​b​a​S​3​C​x​o​8​9​e​k​p​K​h​p​U​9​Q​h​4​c​P​8​Y​n​V​m​6​k​N​j​U​y​x​2​Q​I​f​d​j​H​N​6​T​x​5​d​2​N​K​o​f​v​H​g​v​J​x​2​c​T​T​A​L​N​W​R​0​s​b​L​p​J​e​B​Z​k​7​p​t​8​m​g​/​n​z​y​E​q​c​U​Q​1​q​/​j​Y​l​3​w​m​z​l​q​6​7​O​I​J​u​e​f​r​p​0​G​G​i​6​b​1​z​n​c​w​V​4​v​W​W​Z​1​5​K​O​r​t​4​T​p​G​R​C​d​H​V​w​u​X​Q​g​=​=​|​3​0​0​0​1​0​0​0​0​0​0​4​0​0​0​0​2​4​6​0​|​|
diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.pretty.py b/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.pretty.py index caf71ed..b18142d 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.pretty.py +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.pretty.py @@ -5,8 +5,8 @@ 'Leyenda': None, 'NoCertificadoSAT': '30001000000400002460', 'RfcProvCertif': 'SAT970701NN3', - 'SelloCFD': 'ITnWt9XD28y3p9TifH554OrrvBoPcnsr+v33Tkhq+P+XD1tqg3dsKnC6GqYJezTdCbdpS9+VOaAK6b7/0Efw5KmwRKJ/zXHcdaG5vjHNoAljH+HHu/t4gbK+ToSkLnT2mSEr8dbGeUWMUXsu/yTonZQfw0aXcd8NXxwCJeB/EH1sAlAesZ1uMMVdcNhbOfiDPwFuMuGaKvTXj6pRpbU4SdZ5BKboqyOBfiBtXC+B/n8R/NoniMs+SAhPj9QF4hFPh5v62eFFrP1/KeK16uwHhUaF4VQmqvIgKmoh84kaFhXLXRLD80q0ShgfnYWof8uDZH7o7fIon02FMDUxSZdmgQ==', - 'SelloSAT': 'Bs+W7EiR2Aunl7bwlw+P7/Cg3MMSjYi/rBIDhXQRFCPZM7clokx51hVGNZqhwA/noGGCPtGPPLrZVOJiL95bt9DMjL8YbKpBptBG+xGGpErPIDb6xHUdva+JmY/nQ6l1vp6OdfUmDt8H4vmpu4usdtDV4gz8GUP7ujOddBjmmkhUR3yQQpb9s/RlCJnFUj/Xtefya7ZIa3MFeVWnxsyAT/8tDdxEmydcw7wRhBYGmp7zK8C0i/4Uy9KGJQCed4kqUt/p4D/IOyq/XKr+GkYFofiw5iVPFbrjvfFv5ufeew5+qLz43yyQ5Vvs0vdAgEhpC7X1SKurXTk16RW4zCakkw==', + 'SelloCFD': 'aR5o+/+GiFVZG1csiz01f1IuDtW/R/FpgKHViqpF/61rb//fzaoea2aqj8Z4PSiduekpZW+GFC8g/yQrVbKTBeymIyJinBogcqChMVlu9wIw2CbVYk7zJ3ts+ieD6e1eoyc7w0BJk3WfHrdOwEQY8saSVItouOZ71vMWuvGGpRyhx+xzFJM3W2C85KdXrH/baS3Cxo89ekpKhpU9Qh4cP8YnVm6kNjUyx2QIfdjHN6Tx5d2NKofvHgvJx2cTTALNWR0sbLpJeBZk7pt8mg/nzyEqcUQ1q/jYl3wmzlq67OIJuefrp0GGi6b1zncwV4vWWZ15KOrt4TpGRCdHVwuXQg==', + 'SelloSAT': 'OFEr2i+l/7jucJK7sy+iuffMs9w+7bW4oLpb4ugOHRq6hbRnHegOUV/OMWZ6RKKpnXq9YBeNIWGCennETd7y3GIBQz8SxNMkskiKvmIE13DBkIuOwnZX0GF93osKOK2fcqzX/BxJHE5FCJjlrsj8cWeIsMOmTAHb0FmYm+Ti8cVhASB0SjHHmOn5Zr4xGIGLdyIxaewVt0eKqIjJco60sia1d+xLUaf0wKrJnipEIivt2cVHVKLnBcU2BMH00JERERmzt6OgvyjUYo/w66PLLbPtt4QGFBxuaFN1856APnijTs0sblKNAtfAFVX5ot8wARQS2qfqkiEMkH+2zKxqOg==', 'UUID': '6d7434a6-e3f2-47ad-9e4c-08849946afa0', 'Version': '1.1'}}, 'Conceptos': [{'ACuentaTerceros': None, @@ -41,8 +41,7 @@ 'Fecha': datetime.datetime(2020, 1, 1, 22, 40, 38), 'Folio': '123456', 'FormaPago': None, - 'Impuestos': {'TotalImpuestosTrasladados': 0, - 'Traslados': [{'Base': Decimal('15390.30'), + 'Impuestos': {'Traslados': [{'Base': Decimal('15390.30'), 'Importe': None, 'Impuesto': , 'TasaOCuota': None, @@ -59,7 +58,7 @@ 'ResidenciaFiscal': None, 'Rfc': 'KIJ0906199R1', 'UsoCFDI': 'G03'}, - 'Sello': 'ITnWt9XD28y3p9TifH554OrrvBoPcnsr+v33Tkhq+P+XD1tqg3dsKnC6GqYJezTdCbdpS9+VOaAK6b7/0Efw5KmwRKJ/zXHcdaG5vjHNoAljH+HHu/t4gbK+ToSkLnT2mSEr8dbGeUWMUXsu/yTonZQfw0aXcd8NXxwCJeB/EH1sAlAesZ1uMMVdcNhbOfiDPwFuMuGaKvTXj6pRpbU4SdZ5BKboqyOBfiBtXC+B/n8R/NoniMs+SAhPj9QF4hFPh5v62eFFrP1/KeK16uwHhUaF4VQmqvIgKmoh84kaFhXLXRLD80q0ShgfnYWof8uDZH7o7fIon02FMDUxSZdmgQ==', + 'Sello': 'aR5o+/+GiFVZG1csiz01f1IuDtW/R/FpgKHViqpF/61rb//fzaoea2aqj8Z4PSiduekpZW+GFC8g/yQrVbKTBeymIyJinBogcqChMVlu9wIw2CbVYk7zJ3ts+ieD6e1eoyc7w0BJk3WfHrdOwEQY8saSVItouOZ71vMWuvGGpRyhx+xzFJM3W2C85KdXrH/baS3Cxo89ekpKhpU9Qh4cP8YnVm6kNjUyx2QIfdjHN6Tx5d2NKofvHgvJx2cTTALNWR0sbLpJeBZk7pt8mg/nzyEqcUQ1q/jYl3wmzlq67OIJuefrp0GGi6b1zncwV4vWWZ15KOrt4TpGRCdHVwuXQg==', 'Serie': 'A', 'SubTotal': Decimal('15390.30'), 'TipoCambio': None, diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.xml b/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.xml index 2df1358..ae5870b 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.xml +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_exento_stamped.xml @@ -1,5 +1,5 @@ - + @@ -12,12 +12,12 @@ - + - + diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.pretty.py b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.pretty.py index bbb4312..dee111e 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.pretty.py +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.pretty.py @@ -34,8 +34,7 @@ 'Fecha': datetime.datetime(2020, 1, 1, 22, 40, 38), 'Folio': '123456', 'FormaPago': None, - 'Impuestos': {'TotalImpuestosTrasladados': 0, - 'Traslados': [{'Base': Decimal('15390.30'), + 'Impuestos': {'Traslados': [{'Base': Decimal('15390.30'), 'Importe': None, 'Impuesto': , 'TasaOCuota': None, @@ -52,7 +51,7 @@ 'ResidenciaFiscal': None, 'Rfc': 'KIJ0906199R1', 'UsoCFDI': 'G03'}, - 'Sello': 'JyPHuLEwZT+WtbtrRm0OQSpiRzi/roOpE836seVXJwHUVajqQIqMfHtBP0SyWx10KGezd5fUIe8okSCENXWybnoTl+PEIte+MMhQNIjYtcfpxlsl5Qb5B3gpU+gS/15qSbx8DECjOMU7Rn6s5WZ3P4HeV2vSyPAx9PcCe7IH3C0bRyVs+/SC8vh2gKRyfLEURpcS7yxsyM0soAy2GI/GMgNfLbZDcTNFwDPGmRuKmjsfzUiP44yBtwY3Vske/HNq/iey7p9UGtRfgcKWv64CsLixaBBEYnK5Ppbt0mw3w79VU0w65GWE3okYfHtn19vClnhRiXvj9V4wgBtwWqLbmQ==', + 'Sello': 'kTN0iV5thJ1ag0Lt1CJiZaTO31688G+YyU3Vku0CEIUma2cDYah2/QYEnFAQSlX5j081RaoIqJiblNiQTQOmy79s61wJeqoQ/BwNbV76fosaweM+JBf3XuSk6tRdl1ETAXO0Zu0UbKnqhAz58SExy+cU6F3N6mk/sRI0A6ffuy4EpWXnfZvWLKNUOP8AheX6IO/CF6wjHItinvfS/1B6aH3Qfn3RBwM9Z3Fzw+izj8VTM8XKWS7BJU4J0I/7viLPNV+L6LtDkgkQBtuIQ6NH8/l0DMG3ye/THuA4UQ/Dm00tcOl+Z+JR6EZgBbBZ1VdVGXdCcawyT7v8qOQ/KaZ2OQ==', 'Serie': 'A', 'SubTotal': Decimal('15390.30'), 'TipoCambio': None, diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.xml b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.xml index 0c630d5..1884109 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.xml +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento.xml @@ -1,5 +1,5 @@ - + @@ -12,7 +12,7 @@ - + diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.html b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.html index dc660ff..f68dd6c 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.html +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.html @@ -334,13 +334,13 @@

Timbre Fiscal Digital

- QR Code + QR Code
- Sello del CFDI: J​y​P​H​u​L​E​w​Z​T​+​W​t​b​t​r​R​m​0​O​Q​S​p​i​R​z​i​/​r​o​O​p​E​8​3​6​s​e​V​X​J​w​H​U​V​a​j​q​Q​I​q​M​f​H​t​B​P​0​S​y​W​x​1​0​K​G​e​z​d​5​f​U​I​e​8​o​k​S​C​E​N​X​W​y​b​n​o​T​l​+​P​E​I​t​e​+​M​M​h​Q​N​I​j​Y​t​c​f​p​x​l​s​l​5​Q​b​5​B​3​g​p​U​+​g​S​/​1​5​q​S​b​x​8​D​E​C​j​O​M​U​7​R​n​6​s​5​W​Z​3​P​4​H​e​V​2​v​S​y​P​A​x​9​P​c​C​e​7​I​H​3​C​0​b​R​y​V​s​+​/​S​C​8​v​h​2​g​K​R​y​f​L​E​U​R​p​c​S​7​y​x​s​y​M​0​s​o​A​y​2​G​I​/​G​M​g​N​f​L​b​Z​D​c​T​N​F​w​D​P​G​m​R​u​K​m​j​s​f​z​U​i​P​4​4​y​B​t​w​Y​3​V​s​k​e​/​H​N​q​/​i​e​y​7​p​9​U​G​t​R​f​g​c​K​W​v​6​4​C​s​L​i​x​a​B​B​E​Y​n​K​5​P​p​b​t​0​m​w​3​w​7​9​V​U​0​w​6​5​G​W​E​3​o​k​Y​f​H​t​n​1​9​v​C​l​n​h​R​i​X​v​j​9​V​4​w​g​B​t​w​W​q​L​b​m​Q​=​=
- Sello del SAT: Y​p​t​r​i​G​3​a​k​G​M​o​O​G​Y​g​R​E​g​s​0​F​e​T​c​K​P​N​Z​1​I​2​y​8​T​R​K​W​c​F​r​a​L​N​K​4​u​n​4​X​P​C​6​L​f​n​n​X​A​x​H​1​Z​h​B​B​w​n​o​S​F​V​f​Y​S​d​6​V​S​8​T​5​m​c​k​C​6​u​8​i​g​2​f​Z​a​G​3​z​b​n​l​Y​R​/​f​n​r​Q​t​R​j​q​O​4​G​U​q​2​M​k​z​d​r​D​n​Q​5​N​D​o​b​O​9​3​n​O​D​V​D​Y​U​i​E​L​g​z​a​j​V​z​w​N​n​1​P​J​j​n​Q​E​H​0​S​k​O​W​z​C​J​y​3​a​4​u​x​D​m​t​g​+​3​Z​0​0​V​t​B​2​c​I​m​Z​c​q​n​n​P​s​x​F​8​2​d​H​v​O​Z​6​S​r​f​c​Q​Y​A​8​r​Q​q​m​D​V​v​6​X​p​+​9​Z​F​7​q​8​E​N​B​8​2​K​6​4​8​/​i​k​p​e​Y​Q​M​U​e​w​F​y​e​N​m​f​C​w​h​q​a​c​j​U​h​j​D​B​1​c​g​B​p​S​7​A​5​X​1​i​+​g​U​m​h​f​6​e​5​F​z​j​K​p​b​o​Y​Q​O​5​9​T​Z​5​Z​v​I​1​w​w​0​Z​O​T​A​p​h​W​N​+​p​L​e​k​X​3​l​/​6​x​c​+​5​c​R​6​x​l​A​=​=
- Cadena Original del Timbre Fiscal: |​|​1​.​1​|​6​d​7​4​3​4​a​6​-​e​3​f​2​-​4​7​a​d​-​9​e​4​c​-​0​8​8​4​9​9​4​6​a​f​a​0​|​2​0​2​0​-​0​1​-​1​1​T​0​0​:​0​0​:​0​0​|​S​A​T​9​7​0​7​0​1​N​N​3​|​J​y​P​H​u​L​E​w​Z​T​+​W​t​b​t​r​R​m​0​O​Q​S​p​i​R​z​i​/​r​o​O​p​E​8​3​6​s​e​V​X​J​w​H​U​V​a​j​q​Q​I​q​M​f​H​t​B​P​0​S​y​W​x​1​0​K​G​e​z​d​5​f​U​I​e​8​o​k​S​C​E​N​X​W​y​b​n​o​T​l​+​P​E​I​t​e​+​M​M​h​Q​N​I​j​Y​t​c​f​p​x​l​s​l​5​Q​b​5​B​3​g​p​U​+​g​S​/​1​5​q​S​b​x​8​D​E​C​j​O​M​U​7​R​n​6​s​5​W​Z​3​P​4​H​e​V​2​v​S​y​P​A​x​9​P​c​C​e​7​I​H​3​C​0​b​R​y​V​s​+​/​S​C​8​v​h​2​g​K​R​y​f​L​E​U​R​p​c​S​7​y​x​s​y​M​0​s​o​A​y​2​G​I​/​G​M​g​N​f​L​b​Z​D​c​T​N​F​w​D​P​G​m​R​u​K​m​j​s​f​z​U​i​P​4​4​y​B​t​w​Y​3​V​s​k​e​/​H​N​q​/​i​e​y​7​p​9​U​G​t​R​f​g​c​K​W​v​6​4​C​s​L​i​x​a​B​B​E​Y​n​K​5​P​p​b​t​0​m​w​3​w​7​9​V​U​0​w​6​5​G​W​E​3​o​k​Y​f​H​t​n​1​9​v​C​l​n​h​R​i​X​v​j​9​V​4​w​g​B​t​w​W​q​L​b​m​Q​=​=​|​3​0​0​0​1​0​0​0​0​0​0​4​0​0​0​0​2​4​6​0​|​| + Sello del CFDI: k​T​N​0​i​V​5​t​h​J​1​a​g​0​L​t​1​C​J​i​Z​a​T​O​3​1​6​8​8​G​+​Y​y​U​3​V​k​u​0​C​E​I​U​m​a​2​c​D​Y​a​h​2​/​Q​Y​E​n​F​A​Q​S​l​X​5​j​0​8​1​R​a​o​I​q​J​i​b​l​N​i​Q​T​Q​O​m​y​7​9​s​6​1​w​J​e​q​o​Q​/​B​w​N​b​V​7​6​f​o​s​a​w​e​M​+​J​B​f​3​X​u​S​k​6​t​R​d​l​1​E​T​A​X​O​0​Z​u​0​U​b​K​n​q​h​A​z​5​8​S​E​x​y​+​c​U​6​F​3​N​6​m​k​/​s​R​I​0​A​6​f​f​u​y​4​E​p​W​X​n​f​Z​v​W​L​K​N​U​O​P​8​A​h​e​X​6​I​O​/​C​F​6​w​j​H​I​t​i​n​v​f​S​/​1​B​6​a​H​3​Q​f​n​3​R​B​w​M​9​Z​3​F​z​w​+​i​z​j​8​V​T​M​8​X​K​W​S​7​B​J​U​4​J​0​I​/​7​v​i​L​P​N​V​+​L​6​L​t​D​k​g​k​Q​B​t​u​I​Q​6​N​H​8​/​l​0​D​M​G​3​y​e​/​T​H​u​A​4​U​Q​/​D​m​0​0​t​c​O​l​+​Z​+​J​R​6​E​Z​g​B​b​B​Z​1​V​d​V​G​X​d​C​c​a​w​y​T​7​v​8​q​O​Q​/​K​a​Z​2​O​Q​=​=
+ Sello del SAT: F​6​x​8​O​J​u​y​5​t​4​9​K​/​n​8​Y​q​/​u​2​N​V​n​6​O​v​6​U​V​C​e​n​9​5​B​F​r​6​E​0​Z​6​V​e​o​0​2​D​u​l​J​f​m​v​Q​q​i​5​b​U​Q​U​6​n​r​5​D​q​b​f​d​b​y​K​h​W​9​5​V​K​v​x​x​O​L​s​Q​m​I​B​e​I​U​t​9​l​K​C​x​J​p​y​r​/​5​M​k​6​P​I​C​d​o​K​T​V​u​k​8​g​i​s​u​v​O​5​U​2​w​g​s​6​E​R​/​3​w​a​q​v​e​+​V​k​a​K​a​Q​k​n​n​f​/​i​1​N​o​r​L​k​Q​V​/​u​/​E​1​I​e​U​1​e​R​7​w​v​z​d​v​F​G​9​g​t​3​b​M​i​N​I​G​Q​R​E​i​L​0​S​r​+​X​j​r​j​p​n​s​D​2​J​x​f​d​i​w​W​s​K​5​5​Y​L​y​K​r​G​T​3​g​s​3​H​A​s​g​l​a​C​I​m​r​x​m​B​F​p​h​/​Z​J​M​J​6​1​Y​y​V​x​7​4​H​9​6​N​A​n​A​x​G​N​u​S​F​F​J​n​H​y​P​4​+​k​u​I​K​p​e​y​J​R​a​U​o​3​+​K​c​n​V​/​P​J​z​P​G​M​O​v​B​q​C​A​5​8​a​D​f​9​K​J​g​9​A​r​q​R​O​7​S​0​J​v​y​Q​+​Y​T​S​W​d​A​=​=
+ Cadena Original del Timbre Fiscal: |​|​1​.​1​|​6​d​7​4​3​4​a​6​-​e​3​f​2​-​4​7​a​d​-​9​e​4​c​-​0​8​8​4​9​9​4​6​a​f​a​0​|​2​0​2​0​-​0​1​-​1​1​T​0​0​:​0​0​:​0​0​|​S​A​T​9​7​0​7​0​1​N​N​3​|​k​T​N​0​i​V​5​t​h​J​1​a​g​0​L​t​1​C​J​i​Z​a​T​O​3​1​6​8​8​G​+​Y​y​U​3​V​k​u​0​C​E​I​U​m​a​2​c​D​Y​a​h​2​/​Q​Y​E​n​F​A​Q​S​l​X​5​j​0​8​1​R​a​o​I​q​J​i​b​l​N​i​Q​T​Q​O​m​y​7​9​s​6​1​w​J​e​q​o​Q​/​B​w​N​b​V​7​6​f​o​s​a​w​e​M​+​J​B​f​3​X​u​S​k​6​t​R​d​l​1​E​T​A​X​O​0​Z​u​0​U​b​K​n​q​h​A​z​5​8​S​E​x​y​+​c​U​6​F​3​N​6​m​k​/​s​R​I​0​A​6​f​f​u​y​4​E​p​W​X​n​f​Z​v​W​L​K​N​U​O​P​8​A​h​e​X​6​I​O​/​C​F​6​w​j​H​I​t​i​n​v​f​S​/​1​B​6​a​H​3​Q​f​n​3​R​B​w​M​9​Z​3​F​z​w​+​i​z​j​8​V​T​M​8​X​K​W​S​7​B​J​U​4​J​0​I​/​7​v​i​L​P​N​V​+​L​6​L​t​D​k​g​k​Q​B​t​u​I​Q​6​N​H​8​/​l​0​D​M​G​3​y​e​/​T​H​u​A​4​U​Q​/​D​m​0​0​t​c​O​l​+​Z​+​J​R​6​E​Z​g​B​b​B​Z​1​V​d​V​G​X​d​C​c​a​w​y​T​7​v​8​q​O​Q​/​K​a​Z​2​O​Q​=​=​|​3​0​0​0​1​0​0​0​0​0​0​4​0​0​0​0​2​4​6​0​|​|
diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.pretty.py b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.pretty.py index 1039341..faf6069 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.pretty.py +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.pretty.py @@ -5,8 +5,8 @@ 'Leyenda': None, 'NoCertificadoSAT': '30001000000400002460', 'RfcProvCertif': 'SAT970701NN3', - 'SelloCFD': 'JyPHuLEwZT+WtbtrRm0OQSpiRzi/roOpE836seVXJwHUVajqQIqMfHtBP0SyWx10KGezd5fUIe8okSCENXWybnoTl+PEIte+MMhQNIjYtcfpxlsl5Qb5B3gpU+gS/15qSbx8DECjOMU7Rn6s5WZ3P4HeV2vSyPAx9PcCe7IH3C0bRyVs+/SC8vh2gKRyfLEURpcS7yxsyM0soAy2GI/GMgNfLbZDcTNFwDPGmRuKmjsfzUiP44yBtwY3Vske/HNq/iey7p9UGtRfgcKWv64CsLixaBBEYnK5Ppbt0mw3w79VU0w65GWE3okYfHtn19vClnhRiXvj9V4wgBtwWqLbmQ==', - 'SelloSAT': 'YptriG3akGMoOGYgREgs0FeTcKPNZ1I2y8TRKWcFraLNK4un4XPC6LfnnXAxH1ZhBBwnoSFVfYSd6VS8T5mckC6u8ig2fZaG3zbnlYR/fnrQtRjqO4GUq2MkzdrDnQ5NDobO93nODVDYUiELgzajVzwNn1PJjnQEH0SkOWzCJy3a4uxDmtg+3Z00VtB2cImZcqnnPsxF82dHvOZ6SrfcQYA8rQqmDVv6Xp+9ZF7q8ENB82K648/ikpeYQMUewFyeNmfCwhqacjUhjDB1cgBpS7A5X1i+gUmhf6e5FzjKpboYQO59TZ5ZvI1ww0ZOTAphWN+pLekX3l/6xc+5cR6xlA==', + 'SelloCFD': 'kTN0iV5thJ1ag0Lt1CJiZaTO31688G+YyU3Vku0CEIUma2cDYah2/QYEnFAQSlX5j081RaoIqJiblNiQTQOmy79s61wJeqoQ/BwNbV76fosaweM+JBf3XuSk6tRdl1ETAXO0Zu0UbKnqhAz58SExy+cU6F3N6mk/sRI0A6ffuy4EpWXnfZvWLKNUOP8AheX6IO/CF6wjHItinvfS/1B6aH3Qfn3RBwM9Z3Fzw+izj8VTM8XKWS7BJU4J0I/7viLPNV+L6LtDkgkQBtuIQ6NH8/l0DMG3ye/THuA4UQ/Dm00tcOl+Z+JR6EZgBbBZ1VdVGXdCcawyT7v8qOQ/KaZ2OQ==', + 'SelloSAT': 'F6x8OJuy5t49K/n8Yq/u2NVn6Ov6UVCen95BFr6E0Z6Veo02DulJfmvQqi5bUQU6nr5DqbfdbyKhW95VKvxxOLsQmIBeIUt9lKCxJpyr/5Mk6PICdoKTVuk8gisuvO5U2wgs6ER/3waqve+VkaKaQknnf/i1NorLkQV/u/E1IeU1eR7wvzdvFG9gt3bMiNIGQREiL0Sr+XjrjpnsD2JxfdiwWsK55YLyKrGT3gs3HAsglaCImrxmBFph/ZJMJ61YyVx74H96NAnAxGNuSFFJnHyP4+kuIKpeyJRaUo3+KcnV/PJzPGMOvBqCA58aDf9KJg9ArqRO7S0JvyQ+YTSWdA==', 'UUID': '6d7434a6-e3f2-47ad-9e4c-08849946afa0', 'Version': '1.1'}}, 'Conceptos': [{'ACuentaTerceros': None, @@ -41,8 +41,7 @@ 'Fecha': datetime.datetime(2020, 1, 1, 22, 40, 38), 'Folio': '123456', 'FormaPago': None, - 'Impuestos': {'TotalImpuestosTrasladados': 0, - 'Traslados': [{'Base': Decimal('15390.30'), + 'Impuestos': {'Traslados': [{'Base': Decimal('15390.30'), 'Importe': None, 'Impuesto': , 'TasaOCuota': None, @@ -59,7 +58,7 @@ 'ResidenciaFiscal': None, 'Rfc': 'KIJ0906199R1', 'UsoCFDI': 'G03'}, - 'Sello': 'JyPHuLEwZT+WtbtrRm0OQSpiRzi/roOpE836seVXJwHUVajqQIqMfHtBP0SyWx10KGezd5fUIe8okSCENXWybnoTl+PEIte+MMhQNIjYtcfpxlsl5Qb5B3gpU+gS/15qSbx8DECjOMU7Rn6s5WZ3P4HeV2vSyPAx9PcCe7IH3C0bRyVs+/SC8vh2gKRyfLEURpcS7yxsyM0soAy2GI/GMgNfLbZDcTNFwDPGmRuKmjsfzUiP44yBtwY3Vske/HNq/iey7p9UGtRfgcKWv64CsLixaBBEYnK5Ppbt0mw3w79VU0w65GWE3okYfHtn19vClnhRiXvj9V4wgBtwWqLbmQ==', + 'Sello': 'kTN0iV5thJ1ag0Lt1CJiZaTO31688G+YyU3Vku0CEIUma2cDYah2/QYEnFAQSlX5j081RaoIqJiblNiQTQOmy79s61wJeqoQ/BwNbV76fosaweM+JBf3XuSk6tRdl1ETAXO0Zu0UbKnqhAz58SExy+cU6F3N6mk/sRI0A6ffuy4EpWXnfZvWLKNUOP8AheX6IO/CF6wjHItinvfS/1B6aH3Qfn3RBwM9Z3Fzw+izj8VTM8XKWS7BJU4J0I/7viLPNV+L6LtDkgkQBtuIQ6NH8/l0DMG3ye/THuA4UQ/Dm00tcOl+Z+JR6EZgBbBZ1VdVGXdCcawyT7v8qOQ/KaZ2OQ==', 'Serie': 'A', 'SubTotal': Decimal('15390.30'), 'TipoCambio': None, diff --git a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.xml b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.xml index ed696fd..7a00f9f 100644 --- a/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.xml +++ b/tests/test_create_cfdi40/h&e951128469_ingreso_ieps_exento_stamped.xml @@ -1,5 +1,5 @@ - + @@ -12,12 +12,12 @@ - + - + diff --git a/tests/test_create_cfdi40/iva_exento.html b/tests/test_create_cfdi40/iva_exento.html new file mode 100644 index 0000000..c5da434 --- /dev/null +++ b/tests/test_create_cfdi40/iva_exento.html @@ -0,0 +1,322 @@ + + + CFDI + + + + +

CFDI de I

+ + + + + + + + + + + + + + + + + + + +
SerieFolioEmisorReceptor
A123456 +
BERENICE XIMO QUEZADA
+
RFC: XIQB891116QE4
Régimen Fiscal: 601
+
C.P.: 56820
+
No. Certificado: 30001000000400002311
+
+
KIJ, S.A DE C.V.
+
RFC: KIJ0906199R1
Régimen Fiscal: 601
C.P.: 59820
+
Fecha de Emisión
2020-01-01 22:40:38
+ + + + + + + + + + + + + + + + + + + + + + + +
MonedaMétodo de PagoForma de PagoUso CFDI
MXNPPDNoneG03
Tipo de CambioExportaciónCondiciones de Pago
None01None
+
+
Conceptos
+ + + + + + + + + + + + + + + + + + + + + + +
DescripciónCantidadValor UnitarioDescuentoImporte
+ SERVICIOS DE FACTURACION +
+
Clave SAT: 10101702
Cuenta Predial: 1234567890
Objeto de Impuesto: 02
+ +
+
+ 1.00 +
E48
+
None
+
+ 15,390.30 + + None + + 15,390.30 +
+ + + + + + + + + + + + + + + +
BaseImpuestoTasa o CuotaImporte
+ Traslados15,390.30002NoneNone
+
+ + + + + + + + + + + + + + + + + + + +
Subtotal15,390.30
+ + Traslados + 002NoneNone
+ Total + 15,390.30

+ + \ No newline at end of file diff --git a/tests/test_create_cfdi40/iva_exento.pretty.py b/tests/test_create_cfdi40/iva_exento.pretty.py new file mode 100644 index 0000000..ed9f9d9 --- /dev/null +++ b/tests/test_create_cfdi40/iva_exento.pretty.py @@ -0,0 +1,60 @@ +{'Addenda': None, + 'Certificado': 'MIIF1DCCA7ygAwIBAgIUMzAwMDEwMDAwMDA0MDAwMDIzMTEwDQYJKoZIhvcNAQELBQAwggErMQ8wDQYDVQQDDAZBQyBVQVQxLjAsBgNVBAoMJVNFUlZJQ0lPIERFIEFETUlOSVNUUkFDSU9OIFRSSUJVVEFSSUExGjAYBgNVBAsMEVNBVC1JRVMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlvc2Nhci5tYXJ0aW5lekBzYXQuZ29iLm14MR0wGwYDVQQJDBQzcmEgY2VycmFkYSBkZSBjYWRpejEOMAwGA1UEEQwFMDYzNzAxCzAJBgNVBAYTAk1YMRkwFwYDVQQIDBBDSVVEQUQgREUgTUVYSUNPMREwDwYDVQQHDAhDT1lPQUNBTjERMA8GA1UELRMIMi41LjQuNDUxJTAjBgkqhkiG9w0BCQITFnJlc3BvbnNhYmxlOiBBQ0RNQS1TQVQwHhcNMTkwNTI4MjE1ODQyWhcNMjMwNTI3MjE1ODQyWjCByTEeMBwGA1UEAxMVQkVSRU5JQ0UgWElNTyBRVUVaQURBMR4wHAYDVQQpExVCRVJFTklDRSBYSU1PIFFVRVpBREExHjAcBgNVBAoTFUJFUkVOSUNFIFhJTU8gUVVFWkFEQTELMAkGA1UEBhMCTVgxJTAjBgkqhkiG9w0BCQEWFnBydWViYXNAcHJ1ZWJhcy5nb2IubXgxFjAUBgNVBC0TDVhJUUI4OTExMTZRRTQxGzAZBgNVBAUTElhJUUI4OTExMTZNR1JNWlIwNTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJJLU6Iu3cOyJ14hkh9mjCy3XN5i1M36+60vnwTap8Uv1vQQxJqIB4WK85CSJxujhZE0XY2OT6QPJMQ3kqcuMk8Yz+KptHq51Uhs4jiShI0GGoVUqZ/8qSmY+DnYM/WGvSzuaMMm+cMwgMVYusKHE5FI+K39ht9aSP045KIR84ImnDuVp6DJeUaHEtlqspnQfMvZHfmT71IT7niBJOWYThjmCKMX6Y5tnlng8pOs9hjwHzlpUhVlGRjjUSJjeIZZY66kgbQcpOFCUsoyR2SbOZDMWSqlsXNsRZ5sjICxFrMqZ6GoCzobx7tn6WYisTVvMIvkNHzi8a8idyAMVrDhNb0CAwEAAaNPME0wDAYDVR0TAQH/BAIwADALBgNVHQ8EBAMCA9gwEQYJYIZIAYb4QgEBBAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMEBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAgEAFFyKKTbclgM9SellL9BCWusArCHwtERUXnaFzQzVbcXzZ9rrXoiXLo8OCCkE5fT4ig8FcWiH1bkh6ZABQSHKcEEY9ewJWZpD3bA8E7DLHfDHmG1EqRKStajIG1aq3GSvFAetMvJE2epFsWvkO7CkN2hNT9SwsFkBYl+aiCP27LzQ4uD+mXJ6Pg79nD/ayuQDa7RGJ6u5KHY1I66xcpVxOegQr+zolYQ6RfAye6Fk6JxUnYBVXtnsC3GLpB0fMb+53NZGzARVD9/762A3dy3GHlMWs9FVoRN7DBJyNsVSlAodi9ClETC3Tr7WuXIzPZTbu17JEcqgL6Ovrk6L/SLULvhDe89eBmZHGIm5Vaye2X1OeY+CmpKZ0nMzu16+hOhE3ecRTmxHFUCWzyHuH8qyBetiJY64vyHMwgbyqwM3Lk7lEQowhYb4s8vGyJgb0qQoyt0lACbtkM73CwzasPTtxnHZFKzt0C9aYIZvSVQidmK5EbGNh5YWL8tk352Sqjk4yxlZRqH8SkKHoMjPOrTcBJJwzWWQtz9hOl78kLqcYi+TK4ZWvunGXtZqDyQ2omhZBokSAHqUDjcRmOnuMpazF68j8U73Bz2voQtimMJlB/yyT6luFlzUbEK3ckUYBkk0PKxDe/6T7NXj+H4UWhpTivKnrqNWL7qAHLSP1tnmG8s=', + 'CfdiRelacionados': None, + 'Complemento': None, + 'Conceptos': [{'ACuentaTerceros': None, + 'Cantidad': Decimal('1.00'), + 'ClaveProdServ': '10101702', + 'ClaveUnidad': 'E48', + 'ComplementoConcepto': None, + 'CuentaPredial': '1234567890', + 'Descripcion': 'SERVICIOS DE FACTURACION', + 'Descuento': None, + 'Importe': Decimal('15390.30'), + 'Impuestos': {'Traslados': [{'Base': Decimal('15390.30'), + 'Importe': None, + 'Impuesto': , + 'TasaOCuota': None, + 'TipoFactor': }]}, + 'InformacionAduanera': None, + 'NoIdentificacion': None, + 'ObjetoImp': '02', + 'Parte': None, + 'Unidad': None, + 'ValorUnitario': Decimal('15390.30'), + '_traslados_incluidos': False}], + 'CondicionesDePago': None, + 'Confirmacion': None, + 'Descuento': None, + 'Emisor': {'FacAtrAdquirente': None, + 'Nombre': 'BERENICE XIMO QUEZADA', + 'RegimenFiscal': '601', + 'Rfc': RFC('XIQB891116QE4')}, + 'Exportacion': '01', + 'Fecha': datetime.datetime(2020, 1, 1, 22, 40, 38), + 'Folio': '123456', + 'FormaPago': None, + 'Impuestos': {'Traslados': [{'Base': Decimal('15390.30'), + 'Importe': None, + 'Impuesto': , + 'TasaOCuota': None, + 'TipoFactor': }]}, + 'InformacionGlobal': None, + 'LugarExpedicion': '56820', + 'MetodoPago': 'PPD', + 'Moneda': 'MXN', + 'NoCertificado': '30001000000400002311', + 'Receptor': {'DomicilioFiscalReceptor': '59820', + 'Nombre': 'KIJ, S.A DE C.V.', + 'NumRegIdTrib': None, + 'RegimenFiscalReceptor': '601', + 'ResidenciaFiscal': None, + 'Rfc': 'KIJ0906199R1', + 'UsoCFDI': 'G03'}, + 'Sello': 'jygfCqtM9fk9rqM/E2NH4Lmn+SmW9P0zHcUydUvDj7U+/HKCsxnFq1ExC9bByE1S1Z+0n+Yf6hWGSCihC/+pxc52voi0EBshrWFqXIOjQXrxDZdmR2fWqTaGjLf/nvgZ2KXRdlbExNQZr6ChShD9jyxGcN7btm6m3df6Ilze2h/EhUlp5oDwJ8CpkDvMgIsHtdcKBsy0RW1XNihhzYjBP8SNoWhVWxbJMLKlj9mDfSrJ6DjFVwDnGul+iUr1dTD49Si1wVTleU0baCXC+Y6o327+PGETZ12r2K1owJmXh/EYOqxrtCypJ+MN2yV+7gulrv1zgVCfxTQQx90aGpPZ4g==', + 'Serie': 'A', + 'SubTotal': Decimal('15390.30'), + 'TipoCambio': None, + 'TipoDeComprobante': 'I', + 'Total': Decimal('15390.30'), + 'Version': '4.0'} \ No newline at end of file diff --git a/tests/test_create_cfdi40/iva_exento.xml b/tests/test_create_cfdi40/iva_exento.xml new file mode 100644 index 0000000..63e0d38 --- /dev/null +++ b/tests/test_create_cfdi40/iva_exento.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.pretty.py b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.pretty.py index 2ac6fd2..84aaddd 100644 --- a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.pretty.py +++ b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.pretty.py @@ -42,7 +42,6 @@ 'Impuestos': {'Retenciones': [{'Importe': Decimal('1539.03'), 'Impuesto': }], 'TotalImpuestosRetenidos': Decimal('1539.03'), - 'TotalImpuestosTrasladados': 0, 'Traslados': [{'Base': Decimal('15390.30'), 'Importe': None, 'Impuesto': , @@ -60,7 +59,7 @@ 'ResidenciaFiscal': None, 'Rfc': 'KIJ0906199R1', 'UsoCFDI': 'G03'}, - 'Sello': 'YPKNnHGZ7/wca9lyotn53nOB1E2tgFp3wmkTRchsfxIrUiyKDnayk/W3twHW7qnL4euEc8JWftxceRdZkRRbJPY1YFbF5WrFYURwl2fJzGt+pwJIZ5qRMqATocZjISvaOxT+NdFb8xV11VjDJAL2fqh530le830M/0DA5tGs7V3PngQU7BKCRLSemLaVmrAGSpR2QzBVgJq5dmCTJ2FJPxHLrP7tx5qpsaFQ686y3bjpKALJuO84bSZ1M5M5MU5xlYhdOcQdx+prPxVLQvCbPag95HJ/1uStd6Qri5mMjKkVgau5ah7Lewah0DdL5taVxjpgi6m1IJgPO99XlclOxg==', + 'Sello': 'TVwpw3ce1r6Jng6NvWRLOrifPqjTGUo++tDK1ezogMWL1XSMr4m0c6bj82j8btFCYXF6lM4yFJSFfToLzTZO/BRE+PKnKLq6Vadjy5aGbCs3TenTiTk3e/OzzK0ir6nKlMdD1kn50kEl8wM1kRQQUuBGksxLmuET7JD5Gbe0aHVoDnobeV0yOGnvZxcfpJQofEHoDfjIenza2p0Z00tWUXjqX1/bAlYGkaLh+pBLm47VGz8jpevlx4SLk8m9peNEO16OGGJD5fY7caww46PpYam6M11erzR76Mmav2dPdFnl5TzVqx0hg+YKGkmL3HyBEYEFYEwdFVOt+ftaAVQgVA==', 'Serie': 'A', 'SubTotal': Decimal('15390.30'), 'TipoCambio': None, diff --git a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.xml b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.xml index 545c372..db1d21f 100644 --- a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.xml +++ b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + diff --git a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.html b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.html index d46645b..050da6f 100644 --- a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.html +++ b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.html @@ -350,13 +350,13 @@

Timbre Fiscal Digital

- QR Code + QR Code
- Sello del CFDI: Y​P​K​N​n​H​G​Z​7​/​w​c​a​9​l​y​o​t​n​5​3​n​O​B​1​E​2​t​g​F​p​3​w​m​k​T​R​c​h​s​f​x​I​r​U​i​y​K​D​n​a​y​k​/​W​3​t​w​H​W​7​q​n​L​4​e​u​E​c​8​J​W​f​t​x​c​e​R​d​Z​k​R​R​b​J​P​Y​1​Y​F​b​F​5​W​r​F​Y​U​R​w​l​2​f​J​z​G​t​+​p​w​J​I​Z​5​q​R​M​q​A​T​o​c​Z​j​I​S​v​a​O​x​T​+​N​d​F​b​8​x​V​1​1​V​j​D​J​A​L​2​f​q​h​5​3​0​l​e​8​3​0​M​/​0​D​A​5​t​G​s​7​V​3​P​n​g​Q​U​7​B​K​C​R​L​S​e​m​L​a​V​m​r​A​G​S​p​R​2​Q​z​B​V​g​J​q​5​d​m​C​T​J​2​F​J​P​x​H​L​r​P​7​t​x​5​q​p​s​a​F​Q​6​8​6​y​3​b​j​p​K​A​L​J​u​O​8​4​b​S​Z​1​M​5​M​5​M​U​5​x​l​Y​h​d​O​c​Q​d​x​+​p​r​P​x​V​L​Q​v​C​b​P​a​g​9​5​H​J​/​1​u​S​t​d​6​Q​r​i​5​m​M​j​K​k​V​g​a​u​5​a​h​7​L​e​w​a​h​0​D​d​L​5​t​a​V​x​j​p​g​i​6​m​1​I​J​g​P​O​9​9​X​l​c​l​O​x​g​=​=
- Sello del SAT: g​z​r​w​y​Q​j​d​N​j​q​g​j​9​P​V​o​4​O​M​6​4​N​2​j​8​H​0​E​p​k​v​q​P​a​X​F​j​0​B​C​x​H​w​p​g​J​4​5​z​q​S​Z​I​4​W​w​d​o​y​/​r​l​F​5​7​l​e​Q​l​N​Y​O​3​v​6​Y​z​p​H​r​6​M​P​g​7​T​e​/​e​s​8​8​u​u​g​w​Y​z​7​I​5​l​J​m​4​/​Y​v​o​C​J​E​y​W​8​k​0​i​x​S​G​4​7​g​C​w​O​r​t​J​i​e​I​K​H​p​x​d​I​r​p​2​0​l​M​x​6​s​y​e​K​K​0​2​a​I​F​x​o​8​y​9​u​C​m​d​r​6​A​3​c​N​b​Q​K​z​Q​c​6​d​r​j​K​v​2​A​O​a​n​2​J​Q​7​s​A​i​C​z​1​R​u​s​h​z​k​B​i​y​P​F​C​f​o​Z​c​g​5​Z​l​r​G​P​b​h​Y​Q​c​C​e​E​G​Q​C​G​n​3​L​J​p​k​n​h​g​T​c​/​B​L​Y​R​K​5​b​m​x​I​j​u​7​D​L​j​q​E​e​v​x​8​q​V​c​b​N​4​e​d​X​j​T​/​6​C​0​5​l​u​v​d​I​S​k​n​t​9​l​L​K​9​+​w​8​h​A​x​Z​D​9​R​L​S​q​r​C​5​B​s​2​/​t​w​U​l​G​w​u​6​H​z​C​c​E​g​S​9​c​B​F​K​o​J​Q​=​=
- Cadena Original del Timbre Fiscal: |​|​1​.​1​|​6​d​7​4​3​4​a​6​-​e​3​f​2​-​4​7​a​d​-​9​e​4​c​-​0​8​8​4​9​9​4​6​a​f​a​0​|​2​0​2​0​-​0​1​-​1​1​T​0​0​:​0​0​:​0​0​|​S​A​T​9​7​0​7​0​1​N​N​3​|​Y​P​K​N​n​H​G​Z​7​/​w​c​a​9​l​y​o​t​n​5​3​n​O​B​1​E​2​t​g​F​p​3​w​m​k​T​R​c​h​s​f​x​I​r​U​i​y​K​D​n​a​y​k​/​W​3​t​w​H​W​7​q​n​L​4​e​u​E​c​8​J​W​f​t​x​c​e​R​d​Z​k​R​R​b​J​P​Y​1​Y​F​b​F​5​W​r​F​Y​U​R​w​l​2​f​J​z​G​t​+​p​w​J​I​Z​5​q​R​M​q​A​T​o​c​Z​j​I​S​v​a​O​x​T​+​N​d​F​b​8​x​V​1​1​V​j​D​J​A​L​2​f​q​h​5​3​0​l​e​8​3​0​M​/​0​D​A​5​t​G​s​7​V​3​P​n​g​Q​U​7​B​K​C​R​L​S​e​m​L​a​V​m​r​A​G​S​p​R​2​Q​z​B​V​g​J​q​5​d​m​C​T​J​2​F​J​P​x​H​L​r​P​7​t​x​5​q​p​s​a​F​Q​6​8​6​y​3​b​j​p​K​A​L​J​u​O​8​4​b​S​Z​1​M​5​M​5​M​U​5​x​l​Y​h​d​O​c​Q​d​x​+​p​r​P​x​V​L​Q​v​C​b​P​a​g​9​5​H​J​/​1​u​S​t​d​6​Q​r​i​5​m​M​j​K​k​V​g​a​u​5​a​h​7​L​e​w​a​h​0​D​d​L​5​t​a​V​x​j​p​g​i​6​m​1​I​J​g​P​O​9​9​X​l​c​l​O​x​g​=​=​|​3​0​0​0​1​0​0​0​0​0​0​4​0​0​0​0​2​3​1​1​|​| + Sello del CFDI: T​V​w​p​w​3​c​e​1​r​6​J​n​g​6​N​v​W​R​L​O​r​i​f​P​q​j​T​G​U​o​+​+​t​D​K​1​e​z​o​g​M​W​L​1​X​S​M​r​4​m​0​c​6​b​j​8​2​j​8​b​t​F​C​Y​X​F​6​l​M​4​y​F​J​S​F​f​T​o​L​z​T​Z​O​/​B​R​E​+​P​K​n​K​L​q​6​V​a​d​j​y​5​a​G​b​C​s​3​T​e​n​T​i​T​k​3​e​/​O​z​z​K​0​i​r​6​n​K​l​M​d​D​1​k​n​5​0​k​E​l​8​w​M​1​k​R​Q​Q​U​u​B​G​k​s​x​L​m​u​E​T​7​J​D​5​G​b​e​0​a​H​V​o​D​n​o​b​e​V​0​y​O​G​n​v​Z​x​c​f​p​J​Q​o​f​E​H​o​D​f​j​I​e​n​z​a​2​p​0​Z​0​0​t​W​U​X​j​q​X​1​/​b​A​l​Y​G​k​a​L​h​+​p​B​L​m​4​7​V​G​z​8​j​p​e​v​l​x​4​S​L​k​8​m​9​p​e​N​E​O​1​6​O​G​G​J​D​5​f​Y​7​c​a​w​w​4​6​P​p​Y​a​m​6​M​1​1​e​r​z​R​7​6​M​m​a​v​2​d​P​d​F​n​l​5​T​z​V​q​x​0​h​g​+​Y​K​G​k​m​L​3​H​y​B​E​Y​E​F​Y​E​w​d​F​V​O​t​+​f​t​a​A​V​Q​g​V​A​=​=
+ Sello del SAT: g​6​L​X​t​U​3​M​r​4​A​T​h​M​v​I​z​x​h​s​G​E​E​K​q​W​3​u​Y​v​u​m​G​7​V​c​K​5​G​Q​i​B​a​D​/​M​R​0​+​B​p​l​m​L​V​j​k​j​b​0​Q​I​7​4​G​x​9​z​Q​2​N​d​h​g​Q​n​t​q​B​I​X​W​E​i​g​S​2​E​x​P​f​d​k​c​/​+​P​Y​n​F​r​c​x​A​c​0​x​6​d​e​2​/​Q​Y​s​K​s​t​5​+​w​b​R​V​a​V​2​e​3​Y​m​S​y​q​q​Z​U​t​p​0​+​l​0​A​l​V​Z​b​m​3​6​K​X​9​y​D​M​P​j​Z​b​n​J​S​r​Z​5​8​e​i​M​X​i​b​P​L​W​A​h​i​T​c​p​n​E​9​n​z​w​K​Z​5​P​8​w​t​o​0​S​j​Y​5​X​7​b​d​A​5​u​0​a​/​u​d​k​s​L​I​B​4​x​9​J​N​V​O​x​0​k​7​o​C​F​j​V​x​T​F​q​r​1​V​C​c​f​O​0​w​L​K​L​E​u​2​u​z​4​d​S​X​P​+​X​2​o​q​I​B​x​f​D​7​6​8​5​a​i​u​q​K​w​x​D​Y​q​6​e​z​t​g​2​M​s​x​l​Y​0​J​Y​0​8​B​9​q​8​A​H​Q​P​M​Q​5​D​s​c​M​0​P​j​3​o​C​L​+​M​i​D​U​t​U​b​j​C​W​t​Q​a​c​w​i​n​A​=​=
+ Cadena Original del Timbre Fiscal: |​|​1​.​1​|​6​d​7​4​3​4​a​6​-​e​3​f​2​-​4​7​a​d​-​9​e​4​c​-​0​8​8​4​9​9​4​6​a​f​a​0​|​2​0​2​0​-​0​1​-​1​1​T​0​0​:​0​0​:​0​0​|​S​A​T​9​7​0​7​0​1​N​N​3​|​T​V​w​p​w​3​c​e​1​r​6​J​n​g​6​N​v​W​R​L​O​r​i​f​P​q​j​T​G​U​o​+​+​t​D​K​1​e​z​o​g​M​W​L​1​X​S​M​r​4​m​0​c​6​b​j​8​2​j​8​b​t​F​C​Y​X​F​6​l​M​4​y​F​J​S​F​f​T​o​L​z​T​Z​O​/​B​R​E​+​P​K​n​K​L​q​6​V​a​d​j​y​5​a​G​b​C​s​3​T​e​n​T​i​T​k​3​e​/​O​z​z​K​0​i​r​6​n​K​l​M​d​D​1​k​n​5​0​k​E​l​8​w​M​1​k​R​Q​Q​U​u​B​G​k​s​x​L​m​u​E​T​7​J​D​5​G​b​e​0​a​H​V​o​D​n​o​b​e​V​0​y​O​G​n​v​Z​x​c​f​p​J​Q​o​f​E​H​o​D​f​j​I​e​n​z​a​2​p​0​Z​0​0​t​W​U​X​j​q​X​1​/​b​A​l​Y​G​k​a​L​h​+​p​B​L​m​4​7​V​G​z​8​j​p​e​v​l​x​4​S​L​k​8​m​9​p​e​N​E​O​1​6​O​G​G​J​D​5​f​Y​7​c​a​w​w​4​6​P​p​Y​a​m​6​M​1​1​e​r​z​R​7​6​M​m​a​v​2​d​P​d​F​n​l​5​T​z​V​q​x​0​h​g​+​Y​K​G​k​m​L​3​H​y​B​E​Y​E​F​Y​E​w​d​F​V​O​t​+​f​t​a​A​V​Q​g​V​A​=​=​|​3​0​0​0​1​0​0​0​0​0​0​4​0​0​0​0​2​3​1​1​|​|
diff --git a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.pretty.py b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.pretty.py index a08dfd5..1ca64c0 100644 --- a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.pretty.py +++ b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.pretty.py @@ -5,8 +5,8 @@ 'Leyenda': None, 'NoCertificadoSAT': '30001000000400002311', 'RfcProvCertif': 'SAT970701NN3', - 'SelloCFD': 'YPKNnHGZ7/wca9lyotn53nOB1E2tgFp3wmkTRchsfxIrUiyKDnayk/W3twHW7qnL4euEc8JWftxceRdZkRRbJPY1YFbF5WrFYURwl2fJzGt+pwJIZ5qRMqATocZjISvaOxT+NdFb8xV11VjDJAL2fqh530le830M/0DA5tGs7V3PngQU7BKCRLSemLaVmrAGSpR2QzBVgJq5dmCTJ2FJPxHLrP7tx5qpsaFQ686y3bjpKALJuO84bSZ1M5M5MU5xlYhdOcQdx+prPxVLQvCbPag95HJ/1uStd6Qri5mMjKkVgau5ah7Lewah0DdL5taVxjpgi6m1IJgPO99XlclOxg==', - 'SelloSAT': 'gzrwyQjdNjqgj9PVo4OM64N2j8H0EpkvqPaXFj0BCxHwpgJ45zqSZI4Wwdoy/rlF57leQlNYO3v6YzpHr6MPg7Te/es88uugwYz7I5lJm4/YvoCJEyW8k0ixSG47gCwOrtJieIKHpxdIrp20lMx6syeKK02aIFxo8y9uCmdr6A3cNbQKzQc6drjKv2AOan2JQ7sAiCz1RushzkBiyPFCfoZcg5ZlrGPbhYQcCeEGQCGn3LJpknhgTc/BLYRK5bmxIju7DLjqEevx8qVcbN4edXjT/6C05luvdISknt9lLK9+w8hAxZD9RLSqrC5Bs2/twUlGwu6HzCcEgS9cBFKoJQ==', + 'SelloCFD': 'TVwpw3ce1r6Jng6NvWRLOrifPqjTGUo++tDK1ezogMWL1XSMr4m0c6bj82j8btFCYXF6lM4yFJSFfToLzTZO/BRE+PKnKLq6Vadjy5aGbCs3TenTiTk3e/OzzK0ir6nKlMdD1kn50kEl8wM1kRQQUuBGksxLmuET7JD5Gbe0aHVoDnobeV0yOGnvZxcfpJQofEHoDfjIenza2p0Z00tWUXjqX1/bAlYGkaLh+pBLm47VGz8jpevlx4SLk8m9peNEO16OGGJD5fY7caww46PpYam6M11erzR76Mmav2dPdFnl5TzVqx0hg+YKGkmL3HyBEYEFYEwdFVOt+ftaAVQgVA==', + 'SelloSAT': 'g6LXtU3Mr4AThMvIzxhsGEEKqW3uYvumG7VcK5GQiBaD/MR0+BplmLVjkjb0QI74Gx9zQ2NdhgQntqBIXWEigS2ExPfdkc/+PYnFrcxAc0x6de2/QYsKst5+wbRVaV2e3YmSyqqZUtp0+l0AlVZbm36KX9yDMPjZbnJSrZ58eiMXibPLWAhiTcpnE9nzwKZ5P8wto0SjY5X7bdA5u0a/udksLIB4x9JNVOx0k7oCFjVxTFqr1VCcfO0wLKLEu2uz4dSXP+X2oqIBxfD7685aiuqKwxDYq6eztg2MsxlY0JY08B9q8AHQPMQ5DscM0Pj3oCL+MiDUtUbjCWtQacwinA==', 'UUID': '6d7434a6-e3f2-47ad-9e4c-08849946afa0', 'Version': '1.1'}}, 'Conceptos': [{'ACuentaTerceros': None, @@ -49,7 +49,6 @@ 'Impuestos': {'Retenciones': [{'Importe': Decimal('1539.03'), 'Impuesto': }], 'TotalImpuestosRetenidos': Decimal('1539.03'), - 'TotalImpuestosTrasladados': 0, 'Traslados': [{'Base': Decimal('15390.30'), 'Importe': None, 'Impuesto': , @@ -67,7 +66,7 @@ 'ResidenciaFiscal': None, 'Rfc': 'KIJ0906199R1', 'UsoCFDI': 'G03'}, - 'Sello': 'YPKNnHGZ7/wca9lyotn53nOB1E2tgFp3wmkTRchsfxIrUiyKDnayk/W3twHW7qnL4euEc8JWftxceRdZkRRbJPY1YFbF5WrFYURwl2fJzGt+pwJIZ5qRMqATocZjISvaOxT+NdFb8xV11VjDJAL2fqh530le830M/0DA5tGs7V3PngQU7BKCRLSemLaVmrAGSpR2QzBVgJq5dmCTJ2FJPxHLrP7tx5qpsaFQ686y3bjpKALJuO84bSZ1M5M5MU5xlYhdOcQdx+prPxVLQvCbPag95HJ/1uStd6Qri5mMjKkVgau5ah7Lewah0DdL5taVxjpgi6m1IJgPO99XlclOxg==', + 'Sello': 'TVwpw3ce1r6Jng6NvWRLOrifPqjTGUo++tDK1ezogMWL1XSMr4m0c6bj82j8btFCYXF6lM4yFJSFfToLzTZO/BRE+PKnKLq6Vadjy5aGbCs3TenTiTk3e/OzzK0ir6nKlMdD1kn50kEl8wM1kRQQUuBGksxLmuET7JD5Gbe0aHVoDnobeV0yOGnvZxcfpJQofEHoDfjIenza2p0Z00tWUXjqX1/bAlYGkaLh+pBLm47VGz8jpevlx4SLk8m9peNEO16OGGJD5fY7caww46PpYam6M11erzR76Mmav2dPdFnl5TzVqx0hg+YKGkmL3HyBEYEFYEwdFVOt+ftaAVQgVA==', 'Serie': 'A', 'SubTotal': Decimal('15390.30'), 'TipoCambio': None, diff --git a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.xml b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.xml index 277579d..1b9f1ae 100644 --- a/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.xml +++ b/tests/test_create_cfdi40/xiqb891116qe4_ingreso_exento_stamped.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -24,6 +24,6 @@ - +