[Vtigercrm-commits] [vtiger-commits] r11167 - /vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu May 31 04:08:25 EDT 2007


Author: richie
Date: Thu May 31 02:08:20 2007
New Revision: 11167

Log:
* Show information about changing the base currency name if the currency name is differ in config.inc.php file and in database

Modified:
    vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php

Modified: vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/PatchApply.php Thu May 31 02:08:20 2007
@@ -118,7 +118,12 @@
 	$adb->query("insert into vtiger_version (id, old_version, current_version) values ('','".$versions[$source_version]."','".$vtiger_current_version."')");
 }
 
-
+//If currency name in config.inc.php file and currency name in vtiger_currency_info table is differ then we have to change in config.inc.php file
+$mig_currency = $adb->query_result($adb->query("select currency_name from vtiger_currency_info"),0,'currency_name');
+if($currency_name != $mig_currency)
+{
+	echo "<br><br><b><font color='red'>Note: Please change the base currency name as '$mig_currency' in config.inc.php ie., change the variable currency name as $"."currency_name = '$mig_currency' in config.inc.php file</b>";
+}
 
 //Function used to execute the query and display the success/failure of the query
 function ExecuteQuery($query)





More information about the vtigercrm-commits mailing list