chore: initial commit del proyecto SCAII_Sync_Client
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
21
registros/scaii/reg_503.py
Normal file
21
registros/scaii/reg_503.py
Normal file
@@ -0,0 +1,21 @@
|
||||
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
|
||||
Reference in New Issue
Block a user