From 30b55e60ea9d6bd5ca926d41208e6a47757c311c Mon Sep 17 00:00:00 2001 From: dmolinari Date: Sat, 18 Apr 2026 08:37:10 -0300 Subject: [PATCH] fix(web/adm-009): migrar componentes fiscales a sintaxis Zod v4 --- .../features/fiscal/iibb/components/IngresosBrutosFormModal.tsx | 2 +- .../features/fiscal/iibb/components/NuevaVigenciaIibbModal.tsx | 2 +- .../src/features/fiscal/iva/components/NuevaVigenciaModal.tsx | 2 +- .../src/features/fiscal/iva/components/TipoDeIvaFormModal.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/src/features/fiscal/iibb/components/IngresosBrutosFormModal.tsx b/src/web/src/features/fiscal/iibb/components/IngresosBrutosFormModal.tsx index c1b75ae..22ed9c4 100644 --- a/src/web/src/features/fiscal/iibb/components/IngresosBrutosFormModal.tsx +++ b/src/web/src/features/fiscal/iibb/components/IngresosBrutosFormModal.tsx @@ -45,7 +45,7 @@ const formSchema = z.object({ .max(200, 'Máximo 200 caracteres'), activo: z.boolean(), alicuotaCreate: z.coerce - .number({ invalid_type_error: 'Debe ser un número' }) + .number('Debe ser un número') .min(0, 'Mínimo 0%') .max(100, 'Máximo 100%') .optional(), diff --git a/src/web/src/features/fiscal/iibb/components/NuevaVigenciaIibbModal.tsx b/src/web/src/features/fiscal/iibb/components/NuevaVigenciaIibbModal.tsx index 9434968..f435922 100644 --- a/src/web/src/features/fiscal/iibb/components/NuevaVigenciaIibbModal.tsx +++ b/src/web/src/features/fiscal/iibb/components/NuevaVigenciaIibbModal.tsx @@ -30,7 +30,7 @@ import { toast } from 'sonner' const formSchema = z.object({ alicuota: z.coerce - .number({ invalid_type_error: 'Debe ser un número' }) + .number('Debe ser un número') .min(0, 'Mínimo 0%') .max(100, 'Máximo 100%'), vigenciaDesde: z diff --git a/src/web/src/features/fiscal/iva/components/NuevaVigenciaModal.tsx b/src/web/src/features/fiscal/iva/components/NuevaVigenciaModal.tsx index bb75e37..010f2b6 100644 --- a/src/web/src/features/fiscal/iva/components/NuevaVigenciaModal.tsx +++ b/src/web/src/features/fiscal/iva/components/NuevaVigenciaModal.tsx @@ -31,7 +31,7 @@ import { toast } from 'sonner' const formSchema = z.object({ porcentaje: z.coerce - .number({ invalid_type_error: 'Debe ser un número' }) + .number('Debe ser un número') .min(0, 'Mínimo 0%') .max(100, 'Máximo 100%'), vigenciaDesde: z diff --git a/src/web/src/features/fiscal/iva/components/TipoDeIvaFormModal.tsx b/src/web/src/features/fiscal/iva/components/TipoDeIvaFormModal.tsx index b3164cc..048a364 100644 --- a/src/web/src/features/fiscal/iva/components/TipoDeIvaFormModal.tsx +++ b/src/web/src/features/fiscal/iva/components/TipoDeIvaFormModal.tsx @@ -46,7 +46,7 @@ const formSchema = z.object({ activo: z.boolean(), // Porcentaje SOLO para modo create (no para editar) porcentajeCreate: z.coerce - .number({ invalid_type_error: 'Debe ser un número' }) + .number('Debe ser un número') .min(0, 'Mínimo 0') .max(100, 'Máximo 100') .optional(),