diff --git a/components/orders/register/detail/index.tsx b/components/orders/register/detail/index.tsx index 6476e72..1ee7be3 100644 --- a/components/orders/register/detail/index.tsx +++ b/components/orders/register/detail/index.tsx @@ -10,6 +10,7 @@ import { z } from 'zod' const OrderDetailSchema = z .object({ product: z.object({ + code: z.string(), quantity: z.coerce.number().optional() }), quantity: z.coerce diff --git a/components/sales/register/detail/index.tsx b/components/sales/register/detail/index.tsx index eb32c5c..0bb7950 100644 --- a/components/sales/register/detail/index.tsx +++ b/components/sales/register/detail/index.tsx @@ -10,6 +10,7 @@ import { z } from 'zod' const SaleDetailSchema = z .object({ product: z.object({ + code: z.string(), quantity: z.coerce.number().optional() }), quantity: z.coerce