chore: initial commit del proyecto SCAII_Sync_Client

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 13:38:20 -05:00
commit 10dc063cf1
26 changed files with 2069 additions and 0 deletions

21
registros/scaf/reg_503.py Normal file
View File

@@ -0,0 +1,21 @@
from typing import Dict, Any
class Generador503SCAF:
@staticmethod
def preparar_json(id_pedimento: int, factura_data: Dict[str, Any]) -> Dict[str, Any]:
"""
Lógica para Registro 503 (Guías) - SCAF.
"""
num_niu = factura_data.get("NumNIU", " ")
tipo_guia = factura_data.get("TipoGuia", " ")
total_guias = factura_data.get("CantGuias", 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