[Vtigercrm-commits] [vtiger-commits] r10882 - /vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat May 12 10:45:00 EDT 2007


Author: richie
Date: Sat May 12 08:44:56 2007
New Revision: 10882

Log:
* Fixed the issue in tax validation when we associate tax with products in product create or edit page

Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl

Modified: vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/DisplayFields.tpl Sat May 12 08:44:56 2007
@@ -696,9 +696,8 @@
 	
 	function fntaxValidation(txtObj)
 	{ldelim}
-			temp= /^\d+\.\d+$/.test(document.getElementById(txtObj).value);
-			if(temp == false)
-				alert("{$APP.ENTER_VALID_TAX}");
+			if (!numValidate(txtObj,"Tax","any"))
+				document.getElementById(txtObj).value = 0;
 	{rdelim}	
 
 function delimage(id)





More information about the vtigercrm-commits mailing list