[Vtigercrm-commits] [vtiger-commits] r10031 - /vtigercrm/branches/5.0.3/modules/Accounts/Account.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jan 9 05:50:37 EST 2007
Author: richie
Date: Tue Jan 9 03:50:34 2007
New Revision: 10031
Log:
* Added condition to get the user option, whether overwrite the existing address with the selected account address or not
Modified:
vtigercrm/branches/5.0.3/modules/Accounts/Account.js
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 Tue Jan 9 03:50:34 2007
@@ -43,18 +43,23 @@
function set_return_address(account_id, account_name, bill_street, ship_street, bill_city, ship_city, bill_state, ship_state, bill_code, ship_code, bill_country, ship_country,bill_pobox,ship_pobox) {
window.opener.document.EditView.account_name.value = account_name;
window.opener.document.EditView.account_id.value = account_id;
- window.opener.document.EditView.bill_street.value = bill_street;
- window.opener.document.EditView.ship_street.value = ship_street;
- window.opener.document.EditView.bill_city.value = bill_city;
- window.opener.document.EditView.ship_city.value = ship_city;
- window.opener.document.EditView.bill_state.value = bill_state;
- window.opener.document.EditView.ship_state.value = ship_state;
- window.opener.document.EditView.bill_code.value = bill_code;
- window.opener.document.EditView.ship_code.value = ship_code;
- window.opener.document.EditView.bill_country.value = bill_country;
- window.opener.document.EditView.ship_country.value = ship_country;
- window.opener.document.EditView.bill_pobox.value = bill_pobox;
- window.opener.document.EditView.ship_pobox.value = ship_pobox;
+
+ //Ask the user to overwite the address or not - Modified on 06-01-2007
+ if(confirm("Overwrite the existing address with this selected account("+account_name+") address details?"))
+ {
+ window.opener.document.EditView.bill_street.value = bill_street;
+ window.opener.document.EditView.ship_street.value = ship_street;
+ window.opener.document.EditView.bill_city.value = bill_city;
+ window.opener.document.EditView.ship_city.value = ship_city;
+ window.opener.document.EditView.bill_state.value = bill_state;
+ window.opener.document.EditView.ship_state.value = ship_state;
+ window.opener.document.EditView.bill_code.value = bill_code;
+ window.opener.document.EditView.ship_code.value = ship_code;
+ window.opener.document.EditView.bill_country.value = bill_country;
+ window.opener.document.EditView.ship_country.value = ship_country;
+ window.opener.document.EditView.bill_pobox.value = bill_pobox;
+ window.opener.document.EditView.ship_pobox.value = ship_pobox;
+ }
}
//added to populate address
function set_return_contact_address(account_id, account_name, bill_street, ship_street, bill_city, ship_city, bill_state, ship_state, bill_code, ship_code, bill_country, ship_country,bill_pobox,ship_pobox ) {
More information about the vtigercrm-commits
mailing list