fix: update prezzo_cent validation to ensure non-negative values
This commit is contained in:
parent
237c068409
commit
887f4e8f1d
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export const FormPrezzo = ({
|
|||
const PrezzoSchema = z
|
||||
.object({
|
||||
idprezziario: z.custom<PrezziarioIdprezziario>(),
|
||||
prezzo_cent: z.number().positive(),
|
||||
prezzo_cent: z.number().min(0),
|
||||
testo_condizioni: z.string().nullable(),
|
||||
isAcconto: z.boolean(),
|
||||
isSaldo: z.boolean(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue