frontend


frontend / api/inventory / itemFormSchema

Variable: itemFormSchema

const itemFormSchema: ZodObject<{ code: ZodOptional<ZodString>; name: ZodString; price: ZodNumber; quantity: ZodNumber; reason: ZodEnum<{ INITIAL_STOCK: "INITIAL_STOCK"; MANUAL_UPDATE: "MANUAL_UPDATE"; }>; supplierId: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>

Defined in: src/pages/inventory/validation/inventoryValidation.ts:22

Schema for creating or updating inventory items. Handles both new item creation and existing item updates.