Agregar pdf de documentación para Comercio Digital

This commit is contained in:
Mauricio Baeza 2020-12-11 15:43:56 -06:00
parent 42af2a594c
commit 6e98e016f2
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -167,7 +167,7 @@ class PACComercioDigital(object):
f"PWDK={info['pass']}",
f"KEYF={info['key']}",
f"CERT={info['cer']}",
f"TIPO={info['tipo']}",
f"TIPO={info['tipo']}", # cfdi3.3 o reten1.0
f"ACUS=SI",
f"RFCR={rfc_receptor}",
f"TIPOC={tipo}",
@ -201,7 +201,7 @@ class PACComercioDigital(object):
'tdf': 'http://www.sat.gob.mx/TimbreFiscalDigital',
}
tree = ET.fromstring(cfdi.encode())
tipo = tree.xpath(
tipocfdi = tree.xpath(
'string(//cfdi:Comprobante/@TipoDeComprobante)',
namespaces=NS_CFDI)
total = tree.xpath(
@ -216,7 +216,7 @@ class PACComercioDigital(object):
'pwdws': auth['pass'],
'rfcr': rfc_receptor,
'total': total,
'tipocfdi': tipo,
'tipocfdi': tipocfdi,
}
headers.update(info)