frontend


frontend / api/inventory / priceChangeSchema

Variable: priceChangeSchema

const priceChangeSchema: ZodObject<{ itemId: ZodString; newPrice: ZodNumber; }, $strip>

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

Schema for changing item prices. Used in price change dialogs.

Validation

  • itemId: Required, identifies which item to update
  • newPrice: Must be positive (> 0), backend validates this as well

Note

Backend does not require a "reason" parameter for price changes