HS Code validation modified

This commit is contained in:
unknown 2025-11-12 11:59:41 +05:30
parent acee9c4d99
commit 50b2c8234c

View File

@ -328,7 +328,7 @@ exports.uploadProductsFromCSV = async (req, res) => {
continue;
}
if (hsCode.length !== 10) {
if (hsCode.length > 12) {
errors.push({ row: index + 1, error: "HS Code must be 10 digits" });
continue;
}