[Vtigercrm-commits] [vtiger-commits] r4342 - /vtigercrm/trunk/modules/SalesOrder/SalesOrder.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 10:40:40 EST 2006
Author: saraj
Date: Mon Mar 20 08:40:36 2006
New Revision: 4342
Log:
Modified the function AddRow
Modified:
vtigercrm/trunk/modules/SalesOrder/SalesOrder.js
Modified: vtigercrm/trunk/modules/SalesOrder/SalesOrder.js
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/SalesOrder.js (original)
+++ vtigercrm/trunk/modules/SalesOrder/SalesOrder.js Mon Mar 20 08:40:36 2006
@@ -131,6 +131,13 @@
function calcGrandTotal() {
var subTotal=0,grandTotal=0;
+
+ //This is added for calculate Total for Product Details in Invoice
+ var temp = document.getElementsByTagName('table');
+ for(i=0;i<temp.length;i++){
+ if(temp[i].className == 'prdTab') var rowCnt=temp[i].rows.length -1;
+ }
+
for (var i=1;i<=rowCnt;i++) {
if (getObj("hdnTotal"+i).value=="")
getObj("hdnTotal"+i).value=0
More information about the vtigercrm-commits
mailing list