Agregar Cotización Web (UDO) para cliente Aberio

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-01 11:44:29 -05:00
1 parent f58f4292c3
commit cdd4ffaff8
20 files changed
+1277 -17

No files matched your search

+4 -2
View File
@@ -106,8 +106,10 @@ def make_crud_router(
endpoint_path=resource,
json_data=data,
)
created = resp.json()
return {key_field: created[key_field]}
# Se devuelve la respuesta completa de SAP (no solo key_field):
# documentos tipo UDO necesitan, por ejemplo, el DocNum recién
# asignado para mostrarlo en el frontend sin otra llamada.
return resp.json()
if supports_patch:
@router.patch(f"/api/{resource}/{{key}}", status_code=204, name=f"update_{resource}")