Files
2026-07-09 13:38:20 -05:00

21 lines
690 B
Python

from typing import Dict, Any
class Generador502SCAII:
@staticmethod
def preparar_json(id_pedimento: int, datos_transporte: Dict[str, Any]) -> Dict[str, Any]:
"""
Lógica para Registro 502 (Transporte) - SCAII.
"""
# En WinDev: GTrailers.NUMEROPLACAS si existe, si no " "
placas = datos_transporte.get("NUMEROPLACAS", " ") if datos_transporte else " "
pais = datos_transporte.get("PAIS", " ") if datos_transporte else " "
registro = {
"id_pedimento": id_pedimento,
"numero_placas_502": placas,
"codigo_pais_transporte_502": pais
}
return registro