product and sales fixers

This commit is contained in:
2026-09-30 17:06:28 +05:30
parent 9fd290e256
commit cea433e320
98 changed files with 85367 additions and 1516 deletions
@@ -84,7 +84,7 @@ export function validateTaxRate(code: string, name: string, percentage: number):
/** 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 = "Item type name is required"
if (!name.trim()) errors.name = "Item variant name is required"
return errors
}