[Vtigercrm-commits] [vtiger-commits] r9646 - /vtigercrm/branches/5.0.2/include/js/Inventory.js

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Oct 17 03:32:05 EDT 2006


Author: richie
Date: Tue Oct 17 01:32:01 2006
New Revision: 9646

Log:
* Added function call to calculate group tax when we select group tax

Modified:
    vtigercrm/branches/5.0.2/include/js/Inventory.js

Modified: vtigercrm/branches/5.0.2/include/js/Inventory.js
==============================================================================
--- vtigercrm/branches/5.0.2/include/js/Inventory.js (original)
+++ vtigercrm/branches/5.0.2/include/js/Inventory.js Tue Oct 17 01:32:01 2006
@@ -518,12 +518,18 @@
 function decideTaxDiv()
 {
 	var taxtype = document.getElementById("taxtype").value
+
+	calcTotal();
+
 	if(taxtype == 'group')
+	{
+		//if group tax selected then we have to hide the individual taxes and also calculate the group tax
 		hideIndividualTaxes()
+		calcGroupTax();
+	}
 	else if(taxtype == 'individual')
 		hideGroupTax()
 
-	calcTotal();
 }
 
 function hideIndividualTaxes()





More information about the vtigercrm-commits mailing list