[Vtigercrm-commits] [vtiger-commits] r10917 - in /vtigercrm/branches/5.0.3/modules/Migration: DBChanges/42P2_to_50.php updateCurrency.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 14 14:56:03 EDT 2007


Author: richie
Date: Mon May 14 12:55:57 2007
New Revision: 10917

Log:
* Fixed the issue in convercy conversion (ajax function call was not working. Now fixed)

Modified:
    vtigercrm/branches/5.0.3/modules/Migration/DBChanges/42P2_to_50.php
    vtigercrm/branches/5.0.3/modules/Migration/updateCurrency.php

Modified: vtigercrm/branches/5.0.3/modules/Migration/DBChanges/42P2_to_50.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/DBChanges/42P2_to_50.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/DBChanges/42P2_to_50.php Mon May 14 12:55:57 2007
@@ -4078,9 +4078,21 @@
 
 		if(crate != 0 && crate > 0)
 		{
-			var ajaxObj = new VtigerAjax(ajaxSaveResponse);
-			url = 'module=Migration&action=updateCurrency&ajax=1&crate='+crate;
-			ajaxObj.process("index.php?",url);
+			new Ajax.Request(
+			'index.php',
+			{queue: {position: 'end', scope: 'command'},
+				method: 'post',
+				postBody: 'module=Migration&action=updateCurrency&ajax=1&crate='+crate,
+				onComplete: function(response)
+					{
+						//alert("Existing Currency values has been converted to base currency");
+					}
+			}
+			);
+
+			//var ajaxObj = new VtigerAjax(ajaxSaveResponse);
+			//url = 'module=Migration&action=updateCurrency&ajax=1&crate='+crate;
+			//ajaxObj.process("index.php?",url);
 		}
 		else
 		{

Modified: vtigercrm/branches/5.0.3/modules/Migration/updateCurrency.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/updateCurrency.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/updateCurrency.php Mon May 14 12:55:57 2007
@@ -25,33 +25,33 @@
 
 	//array should be id || vtiger_fieldname => vtiger_tablename
 	$modules_array = Array(
-				"accountid||annualrevenue"	=>	"account",
+				"accountid||annualrevenue"	=>	"vtiger_account",
 				
-				"leadid||annualrevenue"		=>	"leaddetails",
+				"leadid||annualrevenue"		=>	"vtiger_leaddetails",
 
-				"potentialid||amount"		=>	"potential",
+				"potentialid||amount"		=>	"vtiger_potential",
 
-				"productid||unit_price"		=>	"products",
+				"productid||unit_price"		=>	"vtiger_products",
 
-				"salesorderid||salestax"	=>	"salesorder",
-				"salesorderid||adjustment"	=>	"salesorder",
-				"salesorderid||total"		=>	"salesorder",
-				"salesorderid||subtotal"	=>	"salesorder",
+				"salesorderid||salestax"	=>	"vtiger_salesorder",
+				"salesorderid||adjustment"	=>	"vtiger_salesorder",
+				"salesorderid||total"		=>	"vtiger_salesorder",
+				"salesorderid||subtotal"	=>	"vtiger_salesorder",
 
-				"purchaseorderid||salestax"	=>	"purchaseorder",
-				"purchaseorderid||adjustment"	=>	"purchaseorder",
-				"purchaseorderid||total"	=>	"purchaseorder",
-				"purchaseorderid||subtotal"	=>	"purchaseorder",
+				"purchaseorderid||salestax"	=>	"vtiger_purchaseorder",
+				"purchaseorderid||adjustment"	=>	"vtiger_purchaseorder",
+				"purchaseorderid||total"	=>	"vtiger_purchaseorder",
+				"purchaseorderid||subtotal"	=>	"vtiger_purchaseorder",
 
-				"quoteid||tax"			=>	"quotes",
-				"quoteid||adjustment"		=>	"quotes",
-				"quoteid||total"		=>	"quotes",
-				"quoteid||subtotal"		=>	"quotes",
+				"quoteid||tax"			=>	"vtiger_quotes",
+				"quoteid||adjustment"		=>	"vtiger_quotes",
+				"quoteid||total"		=>	"vtiger_quotes",
+				"quoteid||subtotal"		=>	"vtiger_quotes",
 
-				"invoiceid||salestax"		=>	"invoice",
-				"invoiceid||adjustment"		=>	"invoice",
-				"invoiceid||total"		=>	"invoice",
-				"invoiceid||subtotal"		=>	"invoice",
+				"invoiceid||salestax"		=>	"vtiger_invoice",
+				"invoiceid||adjustment"		=>	"vtiger_invoice",
+				"invoiceid||total"		=>	"vtiger_invoice",
+				"invoiceid||subtotal"		=>	"vtiger_invoice",
 			      );
 
 	foreach($modules_array as $fielddetails => $table)





More information about the vtigercrm-commits mailing list