array(
'label' => __( 'Account Owner' ),
'label_width' => 80,
'field_type' => 'userslist',
'label_width_perc' => 45,
'width' => 5
),
'account_number'=>array(
'label' => __( 'Account Number' ),
'label_width_perc' => 35,
'width' => 7
),
'account_website'=>array(
'label' => __( 'Website' ),
'label_width_perc' => 20,
'width' => 6
),
'account_annual_revenue'=>array(
'label' => __( 'Annual revenue ({{currency}})' ),
'label_width_perc' => 50,
'field_type' => 'currencyfield',
'restrict_format' => 'numbers',
'width' => 6
),
'account_nb_employees'=>array(
'label' => __( 'Employees' ),
'restrict_format' => 'numbers',
'label_width_perc' => 60,
'width' => 6
),
'account_sic_code'=>array(
'label' => __( 'Sic Code' ),
'label_width_perc' => 60,
'width' => 6
),
'account_ticker_symbol'=>array(
'label' => __( 'Ticker Symbol' ),
'label_width_perc' => 60,
'width' => 6
),
'account_type'=>array(
'label' => __( 'Account Type' ),
'default' => '',
'options' => array('-None-','Analyst','Competitor','Customer','Integrator','Investor','Partner','Press','Prospect','Reseller','Other'),
'label_width_perc' => 30,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'account_industry'=>array(
'label' => __( 'Industry' ),
'default' => '',
'width' => 5,
'options' => array('-None-','Apparel','Banking','Biotechnology','Chemicals','Communications','Construction','Consulting','Education','Electronics','Energy','Engineering','Entertainment','Environmental','Finance','Food & Beverage','Government','Healthcare','Hospitality','Insurance','Machinery','Manufacturing','Media','Not For Profit','Recreation','Retail','Shipping','Technology','Telecommunications','Transportation','Utilities','Other'),
'label_width_perc' => 30,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'quick_add_potential'=>array(
'label' => __( 'Add Potential' ),
'default' => '',
'width' => 5,
'label_width_perc' => 30,
'field_type' => 'add_child',
'field_config' => array(
'post_type'=>'ff_potentials',
//'child_key'=>'account_parent',
)
),
'quick_add_contact'=>array(
'label' => __( 'Add Contact' ),
'default' => '',
'width' => 5,
'label_width_perc' => 30,
'field_type' => 'add_child',
'field_config' => array(
'post_type'=>'ff_contacts',
//'child_key'=>'account_parent',
)
),
'quick_add_note'=>array(
'label' => __( 'Add Note' ),
'default' => '',
'width' => 5,
'label_width_perc' => 30,
'field_type' => 'add_child',
'field_config' => array(
'post_type'=>'ff_notes',
//'child_key'=>'account_parent',
)
),
'quick_add_task'=>array(
'label' => __( 'Add Task' ),
'default' => '',
'width' => 5,
'label_width_perc' => 30,
'field_type' => 'add_child',
'field_config' => array(
'post_type'=>'ff_tasks',
//'child_key'=>'account_parent',
)
),
'quick_add_event'=>array(
'label' => __( 'Add Event' ),
'default' => '',
'width' => 5,
'label_width_perc' => 30,
'field_type' => 'add_child',
'field_config' => array(
'post_type'=>'ff_events',
//'child_key'=>'account_parent',
)
),
'quick_add_call'=>array(
'label' => __( 'Add Call Log' ),
'default' => '',
'width' => 5,
'label_width_perc' => 30,
'field_type' => 'add_child',
'field_config' => array(
'post_type'=>'ff_call_log',
'child_key'=>'account_parent',
)
),
'rating'=>array(
'label' => __( 'Rating' ),
'default' => '',
'options' => array('-None-','Acquired','Active','Market failed','Project Canceled','Shut down'),
'label_width_perc' => 30,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'ownership'=>array(
'label' => __( 'Ownership'),
'default' => '',
'options' => array('-None-','Other','Public','Private','Subsidiary'),
'label_width_perc' => 30,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'help_main_address'=>array(
'field_type' => 'html',
'html' => "Main Address:"
),
'help_billing_address'=>array(
'field_type' => 'html',
'html' => "Billing Address:
Enter the Billing Address, or keep empty if it's the same than the Main Address."
),
'parent_country'=>array(
'label' => __( 'Country' ),
'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_countries',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 20,
'width' => 10
),//
'parent_country_billing'=>array(
'label' => __( 'Country' ),
'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_countries',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 20,
'width' => 10
),//
'parent_city'=>array(
'label' => __( 'City' ),
'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_cities',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 20,
'width' => 10
),//
'zipcode'=>array(
'label' => __( 'Zip Code' ),
'label_width_perc' => 50,
'width' => 2.5 //1 to 10, 10=100%
),
'street'=>array(
'label' => __( 'Street' ),
'label_width_perc' => 20,
'width' => 5//1 to 10, 10=100%
),
'state'=>array(
'label' => __( 'State' ),
'label_width_perc' => 40,
'width' => 2.5//1 to 10, 10=100%
),
'state_billing'=>array(
'label' => __( 'State' ),
'label_width_perc' => 40,
'width' => 2.5//1 to 10, 10=100%
),
'zipcode_billing'=>array(
'label' => __( 'Zip Code' ),
'label_width_perc' => 50,
'width' => 2.5//1 to 10, 10=100%
),
'street_billing'=>array(
'label' => __( 'Street' ),
'label_width_perc' => 20,
'width' => 5//1 to 10, 10=100%
),
'parent_city_billing'=>array(
'label' => __( 'City' ),
'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_cities',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 20,
'width' => 10
),//
'continent'=>array(
'label' => __( 'Continent' ),
'label_width_perc' => 30,
'width' => 10
),
/////RELATED
'ff_account_child_cases'=>array(
'label' => __( 'Cases' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_cases',
'child_key'=>'account_parent',
'columns'=>array('post_title','assign_to','priority','case_status','case_type')
),
'width' => 10
),
'ff_account_child_newsletter'=>array(
'label' => __( 'Newsletters' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_email_newsletter',
'child_key'=>'account_parent',
'columns'=>array('post_title','newsletter_status','emails_date_sent','emails_time_sent')
),
'width' => 10
),
'ff_account_child_contact'=>array(
'label' => __( 'Contacts' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_contacts',
'child_key'=>'account_parent',
'columns'=>array('post_title','email','phone','mobile_phone','assign_to','lead_source')
),
'width' => 10
),
'ff_account_child_potential'=>array(
'label' => __( 'Potentials' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_potentials',
'child_key'=>'account_parent',
'columns'=>array('post_title','assign_to','potential_closing_date','potential_stage','potential_proba','potential_amount','potential_amount_type','potential_expected_revenue'),
'calculations'=>array('potential_amount'=>array('label'=>'Total Amount','ending'=>'currency'),'potential_expected_revenue'=>array('label'=>'Total Expected Revenue','ending'=>'currency'),'potential_proba'=>array('label'=>'Average Probability','type'=>'average','ending'=>'%'))
),
'width' => 10
),
'ff_account_child_events'=>array(
'label' => __( 'Events' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_events',
'child_key'=>'account_parent',
'columns'=>array('post_title','account_parent','assign_to','start_date','end_date','event_location')
),
'width' => 10
),
'ff_account_child_calls'=>array(
'label' => __( 'Call logs' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_call_log',
'child_key'=>'account_parent',
'columns'=>array('post_title','account_parent','assign_to','contact_parent','start_date','call_type','call_purpose','call_from_to')
),
'width' => 10
),
'ff_account_child_emails'=>array(
'label' => __( 'Email Archive' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_mail_archive',
'child_key'=>'account_parent',
'columns'=>array('post_title','account_parent','sent_date','to_parent',)
),
'width' => 10
),
'ff_account_child_notes'=>array(
'label' => __( 'Notes' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_notes',
'child_key'=>'account_parent',
'columns'=>array('post_title','account_parent')
),
'width' => 10
),
'ff_child_tasks'=>array(
'label' => __( 'Tasks' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_tasks',
'child_key'=>'account_parent',
'columns'=>array('post_title','assign_to','due_date','priority','status','percent_complete','task_type')
),
'width' => 10
),
//****CONTACT
/*'parent_account'=>array(
'label' => __( 'Parent Account' ),
'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_accounts',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 20,
'width' => 10
),// */
'ff_contact_child_tasks'=>array(
'label' => __( 'Tasks' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_tasks',
'child_key'=>'contact_parent',
'columns'=>array('post_title','assign_to','due_date','priority','status','percent_complete','task_type')
),
'width' => 10
),
'ff_contact_child_cases'=>array(
'label' => __( 'Cases' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_cases',
'child_key'=>'contact_parent',
'columns'=>array('post_title','assign_to','priority','case_status','case_type')
),
'width' => 10
),
'ff_contact_child_newsletter'=>array(
'label' => __( 'Newsletters' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_email_newsletter',
'child_key'=>'contact_parent',
'columns'=>array('post_title','newsletter_status','emails_date_sent','emails_time_sent')
),
'width' => 10
),
'ff_contact_child_potential'=>array(
'label' => __( 'Potentials' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_potentials',
'child_key'=>'contact_parent',
'columns'=>array('post_title','account_parent','assign_to','potential_closing_date','potential_stage','potential_proba','potential_amount','potential_amount_type')
),
'width' => 10
),
'ff_contact_child_events'=>array(
'label' => __( 'Events' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_events',
'child_key'=>'contact_parent',
'columns'=>array('post_title','account_parent','assign_to','start_date','end_date','event_location')
),
'width' => 10
),
'ff_contact_child_calls'=>array(
'label' => __( 'Call logs' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_call_log',
'child_key'=>'contact_parent',
'columns'=>array('post_title','account_parent','assign_to','contact_parent','start_date','call_type','call_purpose','call_from_to')
),
'width' => 10
),
'ff_contact_child_emails'=>array(
'label' => __( 'Email Archive' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_mail_archive',
'child_key'=>'contact_parent',
'columns'=>array('post_title','account_parent','sent_date','to_parent',)
),
'width' => 10
),
'ff_contact_child_notes'=>array(
'label' => __( 'Notes' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_notes',
'child_key'=>'contact_parent',
'columns'=>array('post_title','account_parent')
),
'width' => 10
),
'contact_owner'=>array(
'label' => __( 'Contact Owner' ),
'label_width' => 80,
'field_type' => 'userslist',
'label_width_perc' => 45,
'width' => 5
),
'account_parent'=>array(
'label' => __( 'Account' ),
'field_type' => 'autocomplete',
//'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_accounts',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 25,
'width' => 10
),//
'contact_nickname'=>array(
'label' => __( 'Nickname' ),
'label_width_perc' => 50,
'width' => 3 //1 to 10, 10=100%
),
'contact_gender'=>array(
'label' => __( 'Gender'),
'default' => '',
'options' => array('-None-','Mr.','Mrs.','Ms.','Dr.','Prof.'),
'label_width_perc' => 50,
'width' => 2.5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'contact_fistname'=>array(
'label' => __( 'First name' ),
'required' => true,
'label_width_perc' => 30,
'width' => 4
),
'contact_lastname'=>array(
'label' => __( 'Last Name' ),
'required' => true,
'label_width_perc' => 30,
'width' => 4
),
'contact_report_to'=>array(
'label' => __( 'Report to' ),
'label_width_perc' => 30,
'field_type' => 'userslist',
'width' => 5
),
'contact_assistant'=>array(
'label' => __( 'Assistant' ),
'label_width_perc' => 30,
'field_type' => 'userslist',
'width' => 5
),
'assistant_phone'=>array(
'label' => __( 'Assitant phone' ),
'field_type' => 'numberfield',
'maxlength' => 20,
'label_width_perc' => 30,
'width' => 3
),
'contact_dept'=>array(
'label' => __( 'Department' ),
'label_width_perc' => 40,
'width' => 5
),
'contact_title'=>array(
'label' => __( 'Title' ),
'label_width_perc' => 30,
'width' => 3
),
'contact_birth_date'=>array(
'label' => __( 'Birth date' ),
'field_type' => 'datefield',
'label_width_perc' => 30,
'width' => 5 //1 to 10, 10=100%
),
'contact_skype'=>array(
'label' => __( 'Skype' ),
'label_width_perc' => 30,
'width' => 3
),
'contact_msn'=>array(
'label' => __( 'Msn' ),
'label_width_perc' => 30,
'width' => 3
),
'contact_set_title'=>array(
'label' => __( 'Click to auto reset the Title' ),
'field_type' => 'auto_set_title',
'label_width' => 100,
'field_config' => array(
'hide_title'=>true,
'hide_btn'=>true,
'auto_on_save'=>true,
'schema'=>'{contact_fistname} {contact_lastname} ({contact_gender})'
),
'width' => 2
),
////PAGES
'fgl_page_parent'=>array(
'label' => __( 'Page' ),
'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'fgl_pages',
//'null_value'=>true,
'use_none'=>true
),
'width' => 6
),
///TASKS
'contact_parent'=>array(
'label' => __( 'Contact' ),
'field_type' => 'autocomplete',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_contacts',
'use_none'=>true
),
'label_width_perc' => 25,
'width' => 10
),//
'lead_parent'=>array(
'label' => __( 'Lead' ),
'field_type' => 'autocomplete',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_leads',
'use_none'=>true
),
'label_width_perc' => 25,
'width' => 10
),
'potential_parent'=>array(
'label' => __( 'Potential' ),
'field_type' => 'autocomplete',
//'field_type' => 'select',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_potentials',
//'null_value'=>true,
'use_none'=>true
),
'label_width_perc' => 28,
'width' => 10
),//
'task_owner'=>array(
'label' => __( 'Task Owner' ),
'label_width' => 80,
'field_type' => 'userslist',
'label_width_perc' => 45,
'width' => 5
),
'due_date'=>array(
'label' => __( 'Due date' ),
'field_type' => 'datefield',
'label_width_perc' => 25,
'width' => 4 //1 to 10, 10=100%
),
'priority'=>array(
'label' => __( 'Priority'),
'default' => '',
'options' => array('-None-','Normal','High','Highest','Low','Lowest'),
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'task_type'=>array(
'label' => __( 'Type'),
'default' => '',
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'post_type'=>'ff_task_type',
'link_parent'=>false,
'force_add_btn'=>true,
//'null_value'=>true,
//'use_none'=>true
)
),
'percent_complete'=>array(
'label' => __( '% Complete'),
'default' => '',
'options' => array('0','10','20','40','50','60','70','80','90','100'),
'label_width_perc' => 70,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'status'=>array(
'label' => __( 'Status'),
'default' => '',
'options' => array('-None-','Not Started','Deffered','Completed','In Progress','Waiting on someone else'),
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'crm_recurring'=>array(
'label' => __( 'Recurring Activity' ),
'label_width_perc' => 70,
'field_type' => 'checkbox',
'width' => 5
),
'completed_task_action'=>array(
'label' => __( 'Set Complete' ),
'help' => __( 'Set this task as Completed' ),
'field_type' => 'action_button',
'field_config' => array(
'transform_fields'=>array(
array('status',3),//='Closed Won'
array('percent_complete',9),
array('end_date','NOW()'),
array('comments','Completed this task'),
),
'limit_to_edit'=>true,
'btn_class'=>'action_btn_green',
'hide_on_fields_values'=>array(array('status','3')),
),
'width' => 10
),
/*'task_recurring'=>array(
'label' => __( 'Recurring Activity' ),
'label_width_perc' => 70,
'field_type' => 'checkbox',
'width' => 5
),*/
///////CASES
'case_type'=>array(
'label' => __( 'Type'),
'default' => '',
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'post_type'=>'ff_case_type',
'link_parent'=>false,
'force_add_btn'=>true,
//'null_value'=>true,
//'use_none'=>true
)
),
'case_status'=>array(
'label' => __( 'Status'),
'default' => '',
'options' => array('-None-','New','Assigned','Closed','Pending Input','Rejected','Duplicate'),
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
/////////EVENTS
'event_location'=>array(
'label' => __( 'Location' ),
'label_width_perc' => 30,
'width' => 5
),
/////CALL LOGS
'call_type'=>array(
'label' => __( 'Call Type'),
'default' => '',
'options' => array('Inbound','Outbound'),
'label_width_perc' => 50,
'width' => 3,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'call_from_to'=>array(
'label' => __( 'Call From/To'),
'default' => '',
'options' => array('Contact','Lead'),
'label_width_perc' => 60,
'width' => 3,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'call_purpose'=>array(
'label' => __( 'Call Purpose'),
'default' => '',
'options' => array('-None-','Prospecting','Administrative','Negotiation','Demo','Project','Support'),
'label_width_perc' => 50,
'width' => 3,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'call_duration'=>array(
'label' => __( 'Call Duration' ),
'help'=>'hh:mm:ss',
'maxlength' => 8,
'label_width_perc' => 30,
'width' => 5
),
'call_result'=>array(
'label' => __( 'Call Result' ),
'label_width_perc' => 25,
'width' => 10
),
//////POTENTIALS
'potential_owner'=>array(
'label' => __( 'Potential Owner' ),
'label_width' => 80,
'field_type' => 'userslist',
'label_width_perc' => 45,
'width' => 5
),
'potential_amount'=>array(
'label' => __( 'Amount ({{currency}})' ),
'field_type' => 'currencyfield',
'restrict_format' => 'numbers',
'maxlength' => 20,
'label_width_perc' => 50,
'width' => 4
),
'potential_amount_type'=>array(
'label' => __( 'Amount type' ),
'default' => '',
'hide_label' => true,
'options' => array('Fix bid','Per hour','Per day','Per week','Per month','Per year'),
'label_width_perc' => 10,
'width' => 3,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'potential_amount_sum'=>array(
'label' => __( 'Potentials
total amount ({{currency}})' ),
'field_type' => 'currencyfield',
'help' => 'Field auto calculated from the childs Potential Records',
'restrict_format' => 'numbers',
'maxlength' => 20,
'label_width_perc' => 50,
'width' => 2.5
),
'potential_proba_average'=>array(
'label' => __( 'Potentials Probability
average (%)' ),
'field_type' => 'numberfield',
'help' => 'Field auto calculated from the childs Potential Records',
'restrict_format' => 'numbers',
'maxlength' => 20,
'label_width_perc' => 50,
'width' => 2.5
),
'potential_expected_revenue_sum'=>array(
'label' => __( 'Potentials total
expected revenue ({{currency}})' ),
'field_type' => 'currencyfield',
'help' => 'Field auto calculated from the childs Potential Records',
'restrict_format' => 'numbers',
'maxlength' => 20,
'label_width_perc' => 50,
'width' => 3
),
'potential_expected_revenue'=>array(
'label' => __( 'Expected Revenue ({{currency}})' ),
'field_type' => 'currencyfield',
'restrict_format' => 'numbers',
'maxlength' => 20,
'label_width_perc' => 70,
'width' => 5
),
'potential_closing_date'=>array(
'label' => __( 'Closing date' ),
'field_type' => 'datefield',
'label_width_perc' => 35,
'width' => 5 //1 to 10, 10=100%
),
'potential_won_date'=>array(
'label' => __( 'Won date' ),
'field_type' => 'datefield',
'label_width_perc' => 30,
'width' => 4 //1 to 10, 10=100%
),
'potential_stage'=>array(
'label' => __( 'Stage'),
'default' => '',
'options' => array('Prospecting','Qualification','Needs Analysis','Value Proposition','Id. Decision Makers','Perception Analysis','Proposal/Price Quote','Negotiation/Review','Closed Won','Closed Lost','Closed Lost to Competition'),
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'potential_type'=>array(
'label' => __( 'Type'),
'default' => '',
'options' => array('-None-','Existing Business','New Business'),
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'potential_proba'=>array(
'label' => __( 'Probability (%)' ),
'field_type' => 'numberfield',
'maxlength' => 20,
'label_width_perc' => 60,
'width' => 4
),
'potential_next_step'=>array(
'label' => __( 'Next Step' ),
'label_width_perc' => 30,
'width' => 3
),
'ff_potential_child_tasks'=>array(
'label' => __( 'Tasks' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_tasks',
'child_key'=>'potential_parent',
'columns'=>array('post_title','assign_to','due_date','priority','status','percent_complete','task_type')
),
'width' => 10
),
'ff_potential_child_notes'=>array(
'label' => __( 'Notes' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_notes',
'child_key'=>'potential_parent',
'columns'=>array('post_title','account_parent')
),
'width' => 10
),
'ff_potential_child_calls'=>array(
'label' => __( 'Call logs' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_call_log',
'child_key'=>'potential_parent',
'columns'=>array('post_title','account_parent','assign_to','contact_parent','start_date','call_type','call_purpose','call_from_to')
),
'width' => 10
),
'ff_potential_child_events'=>array(
'label' => __( 'Events' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_events',
'child_key'=>'potential_parent',
'columns'=>array('post_title','account_parent','assign_to','start_date','end_date','event_location')
),
'width' => 10
),
'win_potential'=>array(
'label' => __( 'Set Won ' ),
'help' => __( 'Set this potential as WON' ),
'field_type' => 'action_button',
'field_config' => array(
'transform_fields'=>array(
array('potential_stage',8),//='Closed Won'
array('potential_proba',100),
array('potential_won_date','NOW()'),
array('comments','Won this potential'),
),
'limit_to_edit'=>true,
'btn_class'=>'action_btn_green',
'hide_on_fields_values'=>array(array('potential_stage','8,9,10')),
),
'width' => 10
),
'lost_potential'=>array(
'label' => __( 'Set Lost ' ),
'help' => __( 'Set this potential as LOST' ),
'field_type' => 'action_button',
'field_config' => array(
'transform_fields'=>array(
array('potential_stage',9),//='Closed Won'
array('potential_proba','0'),
array('potential_won_date',''),
array('potential_next_step',''),
array('potential_expected_revenue',''),
array('potential_amount',''),
array('comments','Lost this potential'),
),
'limit_to_edit'=>true,
'btn_class'=>'action_btn_red',
'hide_on_fields_values'=>array(array('potential_stage','8,9,10')),
),
'width' => 10
),
/////LEADS
'lead_source'=>array(
'label' => __( 'Lead Source' ),
'default' => '',
'options' => array('-None-','Advertisement','Cold Call','Employee Referral','External Referral','OnlineStore','Partner','Public Relations','Sales Mail Alias','Seminar Partner','Seminar-Internal','Trade Show','Web Download','Web Research','Web Cases','Web Mail'),
'label_width_perc' => 35,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'lead_status'=>array(
'label' => __( 'Lead Status' ),
'default' => '',
'options' => array('-None-','Attempted to Contact','Cold','Contact in Future','Contacted','Hot','Junk Lead','Lost Lead','Not Contacted','Pre Qualified','Qualified','Warm'),
'label_width_perc' => 55,
'width' => 3,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'company'=>array(
'label' => __( 'Company' ),
'label_width_perc' => 20,
'width' => 10
),
'ff_lead_child_cases'=>array(
'label' => __( 'Cases' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_cases',
'child_key'=>'lead_parent',
'columns'=>array('post_title','assign_to','priority','case_status','case_type')
),
'width' => 10
),
'ff_lead_child_newsletter'=>array(
'label' => __( 'Newsletters' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_email_newsletter',
'child_key'=>'lead_parent',
'columns'=>array('post_title','newsletter_status','emails_date_sent','emails_time_sent')
),
'width' => 10
),
'ff_lead_child_tasks'=>array(
'label' => __( 'Tasks' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_tasks',
'child_key'=>'lead_parent',
'columns'=>array('post_title','assign_to','due_date','priority','status','percent_complete','task_type')
),
'width' => 10
),
'ff_lead_child_events'=>array(
'label' => __( 'Events' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_events',
'child_key'=>'lead_parent',
'columns'=>array('post_title','account_parent','assign_to','start_date','end_date','event_location')
),
'width' => 10
),
'ff_lead_child_notes'=>array(
'label' => __( 'Notes' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_notes',
'child_key'=>'lead_parent',
'columns'=>array('post_title','account_parent')
),
'width' => 10
),
'ff_lead_child_calls'=>array(
'label' => __( 'Call logs' ),
'field_type' => 'childgrid',
'field_config' => array(
'post_type'=>'ff_call_log',
'child_key'=>'lead_parent',
'columns'=>array('post_title','account_parent','assign_to','contact_parent','start_date','call_type','call_purpose','call_from_to')
),
'width' => 10
),
'convert_lead'=>array(
'label' => __( 'Convert Lead' ),
'help' => __( 'Convert the lead in Contact and Account' ),
'field_type' => 'convert_button',
'field_config' => array(
'do_trash_original'=>true,
'post_type_targets'=>array(
array('ff_accounts',array(array('company','post_title'),'assign_to','email','phone','fax','parent_city','parent_country','street','state','zipcode','account_website','account_industry','account_annual_revenue','account_nb_employees','rating','full_description')),
array('ff_contacts',array('post_title','email','contact_birth_date','contact_skype','contact_msn','secondary_email','contact_title','contact_dept','phone','fax','secondary_phone','mobile_phone','assign_to','lead_source','parent_city','parent_country','street','state','zipcode','contact_gender','contact_fistname','contact_lastname',array('company','account_parent','find_parent_by_name','full_description')))
)
),
'width' => 10
),
///ARCHIVE EMAILS
'help_email_contacts'=>array(
'field_type' => 'html',
'html' => "Note: Use commas or semi-colons as separators for multiple email addresses."
),
///
'email_footer'=>array(
'label' => __( 'Email Footer' ),
'field_type' => 'richtexteditor',
'label_width_perc' => 30,
'width' => 10 //1 to 10, 10=100%
),
'email_body'=>array(
'label' => __( 'Email Body' ),
'field_type' => 'richtexteditor',
'label_width_perc' => 30,
'width' => 10 //1 to 10, 10=100%
),
'emails_date_sent'=>array(
'label' => __( 'Date sent' ),
'field_type' => 'datefield',
'label_width_perc' => 30,
'width' => 5 //1 to 10, 10=100%
),
'emails_time_sent'=>array(
'label' => __( 'Time sent (hh:mm)' ),
'label_width_perc' => 55,
'width' => 3
),
'from_parent'=>array(
'label' => __( 'From ' ),
'field_type' => 'assignee',
//'info' => 'Assign to',
'label_width' => 70,
//'label_width_perc' => 30,
'field_config' => array(
),
'description' => '(user)',
'width' => 10//1 to 10, 10=100%
),
'to_parent'=>array(
'label' => __( 'To' ),
'field_type' => 'autocomplete',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_contacts',
'use_none'=>true
),
'label_width_perc' => 25,
'width' => 10
),
'cc_parent'=>array(
'label' => __( 'Cc' ),
'field_type' => 'autocomplete',
'label_width' => 100,
'field_config' => array(
'post_type'=>'ff_contacts',
'use_none'=>true
),
'label_width_perc' => 25,
'width' => 10
),
'email_archi_set_title'=>array(
'label' => __( 'Click to auto reset the Title' ),
'field_type' => 'auto_set_title',
'label_width' => 100,
'field_config' => array(
'hide_title'=>true,
'hide_btn'=>true,
'auto_on_save'=>true,
'schema'=>'Email sent {emails_date_sent} to {to_parent}'
),
'width' => 2
),
///NOTES
///
////EMAIL TEMPLATES
'template_category'=>array(
'label' => __( 'Template category' ),
'default' => '',
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'post_type'=>'ff_template_category',
'link_parent'=>false,
'force_add_btn'=>true,
//'null_value'=>true,
//'use_none'=>true
)
),
'help_email_body_tags'=>array(
'field_type' => 'html',
'html' => "Tags that you can use inthe email body:
{{contact_gender}} {{contact_lastname}} {{contact_firstname}} {{contact_email}} | {{lead_gender}} {{lead_firstname}} {{lead_lastname}} {{lead_email}} | {{account_name}}"
),
'reply_to_email'=>array(
'label' => __( 'Reply To' ),
'restrict_format' => 'email',
'label_width_perc' => 30,
'width' =>4
),
'email_subject' =>array(
'label' => __( 'Email Subject' ),
'label_width_perc' => 30,
'width' => 4
),
'reply_to_name' =>array(
'label' => __( 'Reply To Name' ),
'label_width_perc' => 30,
'width' => 4
),
'add_user_signature'=>array(
'label' => __( 'Add User Signature?' ),
'label_width_perc' => 60,
'field_type' => 'checkbox',
'width' => 2
),
///NEWSLETTERS
//
'email_template'=>array(
'label' => __( 'Email Template' ),
'default' => '',
'label_width_perc' => 25,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'post_type'=>'ff_email_template',
'link_parent'=>false,
'force_add_btn'=>true,
//'null_value'=>true,
//'use_none'=>true
)
),
'newsletter_status'=>array(
'label' => __( 'Newsletter Status' ),
'default' => '',
'options' => array('Draft','Sent','Confirmed received','Positive reaction','Negative reaction','To follow up'),
'label_width_perc' => 35,
'width' => 5,
'field_type' => 'select',
'field_config' => array(
'use_values'=>true
)
),
'newsletter_set_title'=>array(
'label' => __( 'Click to auto reset the Title' ),
'field_type' => 'auto_set_title',
'label_width' => 100,
'field_config' => array(
'hide_title'=>true,
'hide_btn'=>true,
'auto_on_save'=>true,
'schema'=>'Newsletter sent on {emails_date_sent} {emails_time_sent}, status {newsletter_status} '
),
'width' => 2
),
'newsletter_send_order'=>array(
'width' => 2,
'field_type' => 'hiddenfield',
),
'newsletter_special_subject'=>array(
'label' => __( 'Special Email Subject' ),
'width' =>10,
'label_width_perc' => 30,
'description'=>'If not empty, overhide the Email Template subject'
),
'send_newsletter'=>array(
'label' => __( 'Send' ),
'help' => __( 'Send this newsletter' ),
'field_type' => 'action_button',
'field_config' => array(
'transform_fields'=>array(
array('newsletter_status',1),//='Closed Won' TIME() newsletter_send_order
array('emails_date_sent','NOW()'),
array('emails_time_sent','TIME()'),
array('comments','Sent this Newsletter'),
array('newsletter_send_order','true'),
),
'limit_to_edit'=>true,
'btn_class'=>'action_btn_green',
'hide_on_fields_values'=>array(array('newsletter_status','1,2,3,4,5,6')),
),
'width' => 10
),
);