diff --git a/layouts/v7/modules/Vtiger/resources/validation.js b/layouts/v7/modules/Vtiger/resources/validation.js index c2e44ee3716797662277b153455ac9af3e4b67de..1bc01e4cb6667ffd183f584997b71389ab9ccc94 100644 --- a/layouts/v7/modules/Vtiger/resources/validation.js +++ b/layouts/v7/modules/Vtiger/resources/validation.js @@ -682,11 +682,11 @@ jQuery.validator.addMethod("percentage", function(value, element, params){ if(spacePattern.test(decimalSeparator)) { strippedValue = strippedValue.replace(/ /g, ''); } - if(isNaN(strippedValue) || strippedValue < 0) { + if(isNaN(strippedValue)) { return false; } return true; -}, jQuery.validator.format(app.vtranslate('JS_ACCEPT_POSITIVE_NUMBER'))); +}, jQuery.validator.format(app.vtranslate('JS_PLEASE_ENTER_VALID_VALUE'))); jQuery.validator.addMethod("inventory_percentage", function(value, element, params){ var valid = jQuery.validator.methods.percentage.call(this,value,element,params);