[Vtigercrm-commits] [vtiger-commits] r10216 - in /vtigercrm/branches/5.0.3/modules/Accounts: Account.js AddressChange.php Save.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Feb 21 04:16:25 EST 2007


Author: saraj
Date: Wed Feb 21 02:16:17 2007
New Revision: 10216

Log:
removed unwanted comments

Modified:
    vtigercrm/branches/5.0.3/modules/Accounts/Account.js
    vtigercrm/branches/5.0.3/modules/Accounts/AddressChange.php
    vtigercrm/branches/5.0.3/modules/Accounts/Save.php

Modified: vtigercrm/branches/5.0.3/modules/Accounts/Account.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/Account.js (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/Account.js Wed Feb 21 02:16:17 2007
@@ -242,7 +242,6 @@
         window.opener.document.createTodo.task_parent_name.value = product_name;
         window.opener.document.createTodo.task_parent_id.value = product_id;
 }
-//Added for dinakaran---------STARTS----------
 //When changing the Account Address Information  it should also change the related contact address.
 function checkAddress(form,id)
 {
@@ -290,4 +289,4 @@
                         );
 
 }
-//Added for dinakaran --------ENDS ------------
+//Changing account address info - ENDS

Modified: vtigercrm/branches/5.0.3/modules/Accounts/AddressChange.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/AddressChange.php (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/AddressChange.php Wed Feb 21 02:16:17 2007
@@ -16,7 +16,7 @@
 require_once('user_privileges/default_module_view.php');
 global $adb;
 global $log;
-//When changing the Account Address Information  it should also change the related contact address. --Dinakaran
+//When changing the Account Address Information  it should also change the related contact address --Dinakaran
 $record = $_REQUEST['record'];
 $sql ="select vtiger_account.accountid,vtiger_accountbillads.street as billingstreet, vtiger_accountbillads.city as billingcity,vtiger_accountbillads.code as billingcode,vtiger_accountbillads.country as billingcountry,vtiger_accountbillads.state as billingstate,vtiger_accountbillads.pobox as billingpobox ,vtiger_accountshipads.* from vtiger_account inner join vtiger_accountbillads on vtiger_accountbillads.accountaddressid=vtiger_account.accountid inner join vtiger_accountshipads on vtiger_accountshipads.accountaddressid = vtiger_account.accountid where accountid=".$record;
 //$sql ="select vtiger_account.accountid,vtiger_accountbillads.* ,vtiger_accountshipads.* from vtiger_accountbillads,vtiger_accountshipads,vtiger_account where accountid =".$record;

Modified: vtigercrm/branches/5.0.3/modules/Accounts/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Accounts/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Accounts/Save.php Wed Feb 21 02:16:17 2007
@@ -95,14 +95,13 @@
 	}
 }*/
 
-//This is added dinakaran----------STARTS--------------
-//When changing the Account Address Information  it should also change the related contact address.
+//When changing the Account Address Information  it should also change the related contact address - dina
 if($focus->mode == 'edit' && $_REQUEST['address_change'] == 'yes')
 {
                 $query = "update vtiger_contactaddress set mailingcity='".$focus->column_fields['bill_city']."',mailingstreet='".$focus->column_fields['bill_street']."',mailingcountry='".$focus->column_fields['bill_country']."',mailingzip='".$focus->column_fields['bill_code']."',mailingpobox='".$focus->column_fields['bill_pobox']."',mailingstate='".$focus->column_fields['bill_state']."',othercountry='".$focus->column_fields['ship_country']."',othercity='".$focus->column_fields['ship_city']."',otherstate='".$focus->column_fields['ship_state']."',otherzip='".$focus->column_fields['ship_code']."',otherstreet='".$focus->column_fields['ship_street']."',otherpobox='".$focus->column_fields['ship_pobox']."'  where contactaddressid in (select contactid from vtiger_contactdetails where accountid=".$focus->id.")" ;
                 $adb->query($query);
 }
-//This is added dinakaran----------STARTS--------------
+//Changing account address - Ends
 
 //$focus->saveentity("Accounts");
 $focus->save("Accounts");





More information about the vtigercrm-commits mailing list