feature/clarion-validaciones-invoices-csv-headers-comp-mex

This commit is contained in:
hreyes
2026-03-09 14:34:54 -06:00
parent b0e788d0cd
commit 09e20fb109
7 changed files with 623 additions and 79 deletions

View File

@@ -59,8 +59,16 @@ def _canonicals_from_columns(cols: Optional[List[Dict]]) -> List[str]:
def _build_registry() -> Dict[str, List[str]]:
registry: Dict[str, List[str]] = {}
# a76/imports (facturas): imp_temp_header, imp_temp_details, imp_def_*, exp_def_*
for tid in ("imp_temp_header", "imp_temp_details", "imp_def_header", "imp_def_details", "exp_def_header", "exp_def_details"):
# a76/imports (facturas): imp_temp_header, imp_temp_details, imp_def_*, exp_def_*, cmex_header
for tid in (
"imp_temp_header",
"imp_temp_details",
"imp_def_header",
"imp_def_details",
"exp_def_header",
"exp_def_details",
"cmex_header",
):
cols = resolve_imports_template(tid)
registry[tid] = _canonicals_from_columns(cols)
@@ -139,6 +147,7 @@ TEMPLATE_FILENAMES: Dict[str, str] = {
"imp_temp_details": "EstructuraParFacImpoTempAF.csv",
"imp_def_header": "EstructuraEncFacImpoDef.csv",
"imp_def_details": "EstructuraParFacImpoDefAF.csv",
"cmex_header": "EstructuraEncFacComprasMex.csv",
"exp_def_header": "EstructuraEncFacExpoCamReg.csv",
"exp_def_details": "EstructuraParExpoCamReg.csv",
}