User Tools

Site Tools


wmanager:core_routing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wmanager:core_routing [2018/05/30 07:16]
Gianluca Pelliccioli created
wmanager:core_routing [2018/05/30 07:22] (current)
Gianluca Pelliccioli
Line 6: Line 6:
  
 The routing mechanism is hardcoded in the following model:  The routing mechanism is hardcoded in the following model: 
 +<code>
 +/applications/modules/core/models/Actions_model.php
 +</code>
 +
 +
 +
 +<code>
 +if($next_act->role == 'AG'){
 + $query = $this->db->select('c.ag_company_id, c.ag_user_id')->where('d.id',$id_thread)->from('threads d')->join('be c', 'c.id = d.be')->get();
 + $companyid = $query->row();
 + if($companyid->ag_company_id){
 + $activity_data['duty_company'] = $companyid->ag_company_id;
 + $activity_data['duty_user'] = $companyid->ag_user_id;
 + } else {
 + $activity_data['duty_company'] = $company->company_id;
 + $activity_data['duty_user'] = NULL;
 + }
 + }else if($next_act->role == 'CRM'){ 
 + $activity_data['duty_company'] = $this->config->item('routing_crm_company_id');
 + $activity_data['duty_user'] = NULL;
 + }else {
 + $activity_data['duty_company'] = $company->company_id;
 + $activity_data['duty_user'] = NULL;
 + }
 +</code>
wmanager/core_routing.1527664607.txt.gz ยท Last modified: 2018/05/30 07:16 by Gianluca Pelliccioli