22 lines
742 B
Python
22 lines
742 B
Python
from typing import Dict, Any
|
|
|
|
class Generador503SCAII:
|
|
@staticmethod
|
|
def preparar_json(id_pedimento: int, factura_data: Dict[str, Any]) -> Dict[str, Any]:
|
|
"""
|
|
Lógica para Registro 503 (Guías) - SCAII.
|
|
"""
|
|
|
|
num_niu = factura_data.get("num_niu", " ")
|
|
tipo_guia = factura_data.get("tipo_guia", " ")
|
|
total_guias = factura_data.get("total_guias", 0)
|
|
|
|
registro = {
|
|
"id_pedimento": id_pedimento,
|
|
"numero_guia_manifiesto_embarque_503": num_niu if num_niu else " ",
|
|
"identificador_guia_503": tipo_guia if tipo_guia else " ",
|
|
"total_guias_503": total_guias if total_guias else 0
|
|
}
|
|
|
|
return registro
|