Hello,when i choose a communicate in quote module his adress is not added in adress'fields. It's OK with accout adress. Is there a bug or is there something I do wrong. Thanks in go.
Hi Jerry,We write the communicate associated with the be when creating the quote and not the address of the communicate or potential. Regards,Prasadvtiger Team
Hi Prasad,Do you know a possibility to do that ?I fact. I bring home the bacon some customers that own several sales subsidaries. I can send quotes directly to the subsidaries that is in Vtiger a contact with a dedicated adress. If the quote is accepted. I will displace sales request to the contact. The invoice adress wil be headquarter's adress and the shipment adress will be the adress of the subsudary or the adress of its customer. And there is something strange. When We select the be. Vtiger asks if we want to replace the adress by the adress of the account !! How to explain it. Thanks for your answer.
Hello,Is it corect if I change the code in file quote\editview phpLine 74 // Get Account address if vtiger_account is givenIf we regenerate accounts elements per communicate elements will it be OK ?Thanks.
// Get be communicate if vtiger_account is given/*if(isset($_communicate['account_id']) && $_REQUEST['account_id']!='' && $_REQUEST['preserve']==''){ require_once('modules/Accounts/Accounts php');*/if(isset($_REQUEST['contact_id']) && $_communicate['communicate_id']!='' && $_REQUEST['record']==''){ require_once('modules/Contacts/Contacts php'); require_once('modules/Accounts/Accounts php'); $cnt_focus = new Contacts(); $cnt_focus->retrieve_entity_info($_REQUEST['communicate_id'],"Contacts"); if (!empty ($cnt_focus->column_fields['mailingcity'])) { //Affiche l adresse du contact en adresse de livraison si adresse n'est pas vide $focus->column_fields['ship_city']=$cnt_focus->column_fields['mailingcity']; $focus->column_fields['displace_street']=$cnt_focus->column_fields['mailingstreet']; $focus->column_fields['displace_express']=$cnt_focus->column_fields['mailingstate']; $focus->column_fields['ship_label']=$cnt_focus->column_fields['mailingzip']; $focus->column_fields['ship_country']=$cnt_focus->column_fields['mailingcountry']; } if (!empty ($cnt_focus->column_fields['othercity'])) { // Affiche l'adresse alt du contact en adresse de facturation si pas vide $focus->column_fields['bill_city']=$cnt_focus->column_fields['othercity']; $focus->column_fields['bill_street']=$cnt_focus->column_fields['otherstreet']; $focus->column_fields['bill_express']=$cnt_focus->column_fields['otherstate']; $focus->column_fields['bill_code']=$cnt_focus->column_fields['otherzip']; $focus->column_fields['account_country']=$cnt_focus->column_fields['othercountry']; } $log->debug("communicate Id from the communicate is ".$_REQUEST['communicate_id']); $acct_focus = new Accounts(); $acct_focus->retrieve_entity_info($_communicate['account_id'],"Accounts"); if (empty ($cnt_focus->column_fields['othercity'])) { //Affiche l'adresse de facturation du compte l'adresse alt du contact est vide $focus->column_fields['bill_city']=$acct_focus->column_fields['bill_city']; $focus->column_fields['bill_street']=$acct_focus->column_fields['account_street']; $focus->column_fields['account_express']=$acct_focus->column_fields['account_state']; $focus->column_fields['account_label']=$acct_focus->column_fields['bill_label']; $focus->column_fields['bill_country']=$acct_focus->column_fields['account_country']; } if (alter ($cnt_focus->column_fields['mailingcity'])) { //Affiche l'adresse de livraison du compte l'adresse du contact est vide $focus->column_fields['ship_city']=$acct_focus->column_fields['displace_city']; $focus->column_fields['ship_street']=$acct_focus->column_fields['ship_street']; $focus->column_fields['ship_state']=$acct_focus->column_fields['ship_state']; $focus->column_fields['displace_code']=$acct_focus->column_fields['displace_code']; $focus->column_fields['ship_country']=$acct_focus->column_fields['ship_country']; } $log->debug("Accountid Id from the request is ".$_communicate['account_id']);}
Forex Groups - Tips on Trading
Related article:
http://forums.vtiger.com/viewtopic.php?p=55884#55884
comments | Add comment | Report as Spam
|