task-h.4
This commit is contained in:
@@ -285,6 +285,18 @@ const FOUNDATION_OPTIONS = {
|
||||
{ code: 'email', label: 'Email', value: 'email', sortOrder: 4 },
|
||||
{ code: 'line', label: 'LINE', value: 'line', sortOrder: 5 }
|
||||
],
|
||||
crm_job_title: [
|
||||
{ code: 'sales', label: 'Sales Engineer', value: 'sales', sortOrder: 1 },
|
||||
{ code: 'sales_support', label: 'Sales Support', value: 'sales_support', sortOrder: 2 },
|
||||
{ code: 'sales_manager', label: 'Sales Manager', value: 'sales_manager', sortOrder: 3 },
|
||||
{
|
||||
code: 'department_manager',
|
||||
label: 'Department Manager',
|
||||
value: 'department_manager',
|
||||
sortOrder: 4
|
||||
},
|
||||
{ code: 'top_manager', label: 'General Manager', value: 'top_manager', sortOrder: 5 }
|
||||
],
|
||||
crm_lead_channel: [
|
||||
{ code: 'website', label: 'Website', value: 'website', sortOrder: 1 },
|
||||
{ code: 'referral', label: 'Referral', value: 'referral', sortOrder: 2 },
|
||||
@@ -393,42 +405,42 @@ const DOCUMENT_TEMPLATE_MAPPINGS: TemplateMappingSeed[] = [
|
||||
},
|
||||
{
|
||||
placeholderKey: 'app1',
|
||||
sourcePath: 'signatures.preparedBy',
|
||||
sourcePath: 'signatures.preparedBy.name',
|
||||
dataType: 'scalar',
|
||||
defaultValue: '-',
|
||||
sortOrder: 13
|
||||
},
|
||||
{
|
||||
placeholderKey: 'app1_position',
|
||||
sourcePath: 'signatures.preparedByPosition',
|
||||
sourcePath: 'signatures.preparedBy.position',
|
||||
dataType: 'scalar',
|
||||
defaultValue: '-',
|
||||
sortOrder: 14
|
||||
},
|
||||
{
|
||||
placeholderKey: 'app2',
|
||||
sourcePath: 'signatures.salesManager',
|
||||
sourcePath: 'signatures.approvedBy.name',
|
||||
dataType: 'scalar',
|
||||
defaultValue: '-',
|
||||
sortOrder: 15
|
||||
},
|
||||
{
|
||||
placeholderKey: 'app2_position',
|
||||
sourcePath: 'signatures.salesManagerPosition',
|
||||
sourcePath: 'signatures.approvedBy.position',
|
||||
dataType: 'scalar',
|
||||
defaultValue: '-',
|
||||
sortOrder: 16
|
||||
},
|
||||
{
|
||||
placeholderKey: 'app3',
|
||||
sourcePath: 'signatures.topManager',
|
||||
sourcePath: 'signatures.authorizedBy.name',
|
||||
dataType: 'scalar',
|
||||
defaultValue: '-',
|
||||
sortOrder: 17
|
||||
},
|
||||
{
|
||||
placeholderKey: 'app3_position',
|
||||
sourcePath: 'signatures.topManagerPosition',
|
||||
sourcePath: 'signatures.authorizedBy.position',
|
||||
dataType: 'scalar',
|
||||
defaultValue: '-',
|
||||
sortOrder: 18
|
||||
@@ -503,7 +515,7 @@ async function upsertMasterOptionsForOrganization(
|
||||
for (const option of options) {
|
||||
const parentRow =
|
||||
option.parentCode && option.parentCategory
|
||||
? (
|
||||
? ((
|
||||
await sql`
|
||||
select id
|
||||
from ms_options
|
||||
@@ -513,7 +525,7 @@ async function upsertMasterOptionsForOrganization(
|
||||
and deleted_at is null
|
||||
limit 1
|
||||
`
|
||||
)[0] ?? null
|
||||
)[0] ?? null)
|
||||
: null;
|
||||
const [row] = await sql`
|
||||
insert into ms_options (
|
||||
|
||||
Reference in New Issue
Block a user