some update logic update on showing option

This commit is contained in:
Nitesh Yadav
2026-04-21 13:19:19 +05:30
parent 800e114a4d
commit 98dd941712
15 changed files with 22874 additions and 39956 deletions
@@ -449,12 +449,6 @@ public class CurrentProductDataValidator {
if (this.fromApiJsonHelper.parameterExists(taxGroupIdParamName, element)) {
final Long taxGroupId = this.fromApiJsonHelper.extractLongNamed(taxGroupIdParamName, element);
baseDataValidator.reset().parameter(taxGroupIdParamName).value(taxGroupId).ignoreIfNull().longGreaterThanZero();
if (withHoldTax) {
baseDataValidator.reset().parameter(taxGroupIdParamName).value(taxGroupId).notBlank();
}
} else if (withHoldTax && isCreate) {
final Long taxGroupId = null;
baseDataValidator.reset().parameter(taxGroupIdParamName).value(taxGroupId).notBlank();
}
}
}