Complete all for Items

This commit is contained in:
2026-07-17 14:27:51 +05:30
parent f72b24fcaa
commit 62a5d857de
103 changed files with 2540 additions and 3259 deletions
@@ -57,9 +57,10 @@ export function validateBrandName(name: string): Record<string, string> {
return errors
}
export function validateVariantCategoryName(name: string): Record<string, string> {
/** Renamed from validateVariantCategoryName — "variant categories" are Item Types now. */
export function validateItemTypeName(name: string): Record<string, string> {
const errors: Record<string, string> = {}
if (!name.trim()) errors.name = "Category name is required"
if (!name.trim()) errors.name = "Item type name is required"
return errors
}