Se agrego fecha_de pago en la extraccion del xml

This commit is contained in:
2025-09-24 22:19:08 -06:00
parent d11d543bdc
commit a534e8898f
3 changed files with 17 additions and 152 deletions

View File

@@ -184,6 +184,8 @@ def auditar_pedimento(organizacion_id):
pedimento.numero_partidas = xml_data.get('numero_partidas')
pedimento.remesas = xml_data.get('remesas')
pedimento.tipo_operacion__id = xml_data.get('tipo_operacion')
pedimento.fecha_pago = xml_data.get('fecha_pago')
pedimento.pedimento_app = xml_data.get('fecha_pago')[2:4] + "-" + pedimento.aduana + "-" + pedimento.patente + "-" + pedimento.pedimento
pedimento.save()
for edoc in xml_data.get('edocuments', []):