calander activity push
This commit is contained in:
parent
3cdd73a7ee
commit
bd3151add9
@ -1238,9 +1238,23 @@ class SalesController extends BaseController
|
|||||||
|
|
||||||
/* ---------------- SUMMARY ---------------- */
|
/* ---------------- SUMMARY ---------------- */
|
||||||
|
|
||||||
$summary = ucfirst($input['activity_type']) .
|
$activityType = ucfirst($input['activity_type']);
|
||||||
' with ' .
|
|
||||||
$lead_data['company_name'];
|
$prepositionMap = [
|
||||||
|
'Email' => 'to',
|
||||||
|
'Call' => 'with',
|
||||||
|
'Meeting' => 'with',
|
||||||
|
'Visit' => 'to',
|
||||||
|
'Demo' => 'with',
|
||||||
|
'Share Docs' => 'to',
|
||||||
|
'To Do' => 'for'
|
||||||
|
];
|
||||||
|
|
||||||
|
$preposition = $prepositionMap[$activityType] ?? 'with';
|
||||||
|
|
||||||
|
$summary = "Activity scheduled : {$activityType} {$preposition} {$lead_data['company_name']}";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ---------------- GOOGLE PAYLOAD ---------------- */
|
/* ---------------- GOOGLE PAYLOAD ---------------- */
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user