ADM-009: Tablas Fiscales (IVA + IIBB) — append-only versioned ref data #22
@@ -45,7 +45,7 @@ const formSchema = z.object({
|
|||||||
.max(200, 'Máximo 200 caracteres'),
|
.max(200, 'Máximo 200 caracteres'),
|
||||||
activo: z.boolean(),
|
activo: z.boolean(),
|
||||||
alicuotaCreate: z.coerce
|
alicuotaCreate: z.coerce
|
||||||
.number({ invalid_type_error: 'Debe ser un número' })
|
.number<number>('Debe ser un número')
|
||||||
.min(0, 'Mínimo 0%')
|
.min(0, 'Mínimo 0%')
|
||||||
.max(100, 'Máximo 100%')
|
.max(100, 'Máximo 100%')
|
||||||
.optional(),
|
.optional(),
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import { toast } from 'sonner'
|
|||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
alicuota: z.coerce
|
alicuota: z.coerce
|
||||||
.number({ invalid_type_error: 'Debe ser un número' })
|
.number<number>('Debe ser un número')
|
||||||
.min(0, 'Mínimo 0%')
|
.min(0, 'Mínimo 0%')
|
||||||
.max(100, 'Máximo 100%'),
|
.max(100, 'Máximo 100%'),
|
||||||
vigenciaDesde: z
|
vigenciaDesde: z
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import { toast } from 'sonner'
|
|||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
porcentaje: z.coerce
|
porcentaje: z.coerce
|
||||||
.number({ invalid_type_error: 'Debe ser un número' })
|
.number<number>('Debe ser un número')
|
||||||
.min(0, 'Mínimo 0%')
|
.min(0, 'Mínimo 0%')
|
||||||
.max(100, 'Máximo 100%'),
|
.max(100, 'Máximo 100%'),
|
||||||
vigenciaDesde: z
|
vigenciaDesde: z
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const formSchema = z.object({
|
|||||||
activo: z.boolean(),
|
activo: z.boolean(),
|
||||||
// Porcentaje SOLO para modo create (no para editar)
|
// Porcentaje SOLO para modo create (no para editar)
|
||||||
porcentajeCreate: z.coerce
|
porcentajeCreate: z.coerce
|
||||||
.number({ invalid_type_error: 'Debe ser un número' })
|
.number<number>('Debe ser un número')
|
||||||
.min(0, 'Mínimo 0')
|
.min(0, 'Mínimo 0')
|
||||||
.max(100, 'Máximo 100')
|
.max(100, 'Máximo 100')
|
||||||
.optional(),
|
.optional(),
|
||||||
|
|||||||
Reference in New Issue
Block a user