refactor(vtiger-crm): update field names and keys

This commit is contained in:
Rıdvan Akca
2024-05-07 15:42:35 +02:00
parent 759e8b6c42
commit 8a35d47caf
10 changed files with 82 additions and 82 deletions

View File

@@ -54,8 +54,8 @@ export const fields = [
},
},
{
label: 'Contact Name',
key: 'contactName',
label: 'Contact',
key: 'contactId',
type: 'dropdown',
required: false,
description: '',
@@ -106,7 +106,7 @@ export const fields = [
},
{
label: 'Record Currency',
key: 'recordCurrency',
key: 'recordCurrencyId',
type: 'dropdown',
required: false,
description: '',
@@ -247,8 +247,8 @@ export const fields = [
},
},
{
label: 'Project Name',
key: 'projectName',
label: 'Project',
key: 'projectId',
type: 'dropdown',
required: false,
description: '',
@@ -265,8 +265,8 @@ export const fields = [
},
},
{
label: 'Organization Name',
key: 'organizationName',
label: 'Organization',
key: 'organizationId',
type: 'dropdown',
required: false,
description: '',
@@ -337,8 +337,8 @@ export const fields = [
variables: true,
},
{
label: 'SLA Name',
key: 'slaName',
label: 'SLA',
key: 'slaId',
type: 'dropdown',
required: false,
description: '',

View File

@@ -14,11 +14,11 @@ export default defineAction({
startDateAndTime,
dueDate,
stage,
contactName,
contactId,
priority,
sendNotification,
location,
recordCurrency,
recordCurrencyId,
milestone,
previousTask,
parentTask,
@@ -26,14 +26,14 @@ export default defineAction({
skippedReason,
estimate,
relatedTask,
projectName,
organizationName,
projectId,
organizationId,
sendEmailReminderBefore,
description,
isBillable,
service,
rate,
slaName,
slaId,
} = $.step.parameters;
const elementData = {
@@ -42,11 +42,11 @@ export default defineAction({
date_start: startDateAndTime,
due_date: dueDate,
taskstatus: stage,
contact_id: contactName,
contact_id: contactId,
taskpriority: priority,
sendnotification: sendNotification,
location: location,
record_currency_id: recordCurrency,
record_currency_id: recordCurrencyId,
milestone: milestone,
dependent_on: previousTask,
parent_task: parentTask,
@@ -54,14 +54,14 @@ export default defineAction({
skipped_reason: skippedReason,
estimate: estimate,
related_task: relatedTask,
related_project: projectName,
account_id: organizationName,
related_project: projectId,
account_id: organizationId,
reminder_time: sendEmailReminderBefore,
description: description,
is_billable: isBillable,
billing_service: service,
rate: rate,
slaid: slaName,
slaid: slaId,
};
const body = {