Updated code

This commit is contained in:
rajesh
2024-09-23 18:33:45 +05:30
parent 6f2bb714e1
commit afbdd70f6b
3 changed files with 7 additions and 4 deletions

View File

@@ -221,7 +221,9 @@ public class FormDao {
.validateCustom(value, fieldValidatorBean.getCustom(), fieldId); // Add the custom validation here
if (fieldValidatorBean.getCustom() != null && fieldValidatorBean.getCustom().equals(GepafinConstant.IS_PIVA)) {
String error = validateVatNumber(value, fieldValidatorBean.getCustom(), fieldId);
validator.addError(error);
if(error != null) {
validator.addError(error);
}
}
});
validator.validate();