Agregar pdf de documentación para Comercio Digital
This commit is contained in:
parent
42af2a594c
commit
6e98e016f2
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue