3
0

Update crm & ser-sol provision config files

This commit is contained in:
Denis Arh
2021-04-03 08:19:06 +02:00
parent 7f5fd6dbd8
commit 530601a667
10 changed files with 18916 additions and 290 deletions
+22
View File
@@ -0,0 +1,22 @@
templates:
quote:
type: text/html
template: "<h1>Details of Quote: {{.quote.values.QuoteNumber}} - {{.quote.values.Name}}</h1>\r\n<br>\r\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"min-width:100%;\">\r\n <tr>\r\n <td valign=\"top\">\r\n <strong>Quote Information</strong>\r\n <br><br>\r\n <strong>Quote Number:</strong> {{.quote.values.QuoteNumber}}<br>\r\n <strong>Quote Name:</strong> {{.quote.values.Name}}<br>\r\n <strong>Expiration Date:</strong> {{.quote.values.ExpirationDate}}<strong><br>\r\n <strong>Description:</strong> {{.quote.values.Description}}\r\n </td>\r\n <td valign=\"top\">\r\n <strong>Primary contact data</strong>\r\n <br><br>\r\n <strong>Contact Name:</strong> {{.quote.values.ContactId}}<br>\r\n <strong>Email:</strong> {{.quote.values.Email}}<br>\r\n <strong>Phone:</strong> {{.quote.values.Phon}}\r\n </td>\r\n <td valign=\"top\">\r\n <strong>Totals</strong><br>\r\n <br>\r\n <strong>Subtotal:</strong> {{.quote.values.Subtotal}}<br>\r\n <strong>Additional Discount:</strong> {{.quote.values.Discount}}<br>\r\n <strong>Shipping and Handling:</strong> {{.quote.values.ShippingHandling}}<br>\r\n <strong>Total Price:</strong> {{.quote.values.TotalPrice}}<br>\r\n <strong>Tax:</strong> {{.quote.values.Tax}}<br>\r\n <strong>Grand Total:</strong> {{.quote.values.GrandTotal}}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan='3'>\r\n <strong>Products</strong>\r\n <br><br>\r\n {{range $index, $element := .lineItems}}\r\n <strong>Price:</strong>{{$element.values.UnitPrice}}<br>\r\n <strong>Quantity:</strong>{{$element.values.Quantity}}<br>\r\n <strong>Subtotal:</strong>{{$element.values.Subtotal}}<br>\r\n <strong>Discount:</strong>{{$element.values.Discount}}<br>\r\n <strong>Total Price:</strong>{{$element.values.TotalPrice}}<br>\r\n -------------------------<br>\r\n {{end}}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td valign=\"top\">\r\n <strong>Bill To</strong><br>\r\n <br>\r\n <strong>Bill to Name:</strong> {{.quote.values.BillingName}}<br>\r\n <strong>Bill to Street:</strong> {{.quote.values.BillingStreet}}<br>\r\n <strong>Bill to City:</strong> {{.quote.values.BillingCity}}<br>\r\n <strong>Bill to State:</strong> {{.quote.values.BillingState}}<strong><br>\r\n <strong>Bill to Postal Code:</strong> {{.quote.values.BillingPostalCode}}<br>\r\n <strong>Bill to Country:</strong> {{.quote.values.BillingCountry}}\r\n </td>\r\n <td valign=\"top\">\r\n <strong>Quote To</strong><br>\r\n <br>\r\n <strong>Quote to Name:</strong> {{.quote.values.QuoteToName}}<br>\r\n <strong>Quote to Street:</strong> {{.quote.values.QuoteToStreet}}<br>\r\n <strong>Quote to City:</strong> {{.quote.values.QuoteToCity}}<br>\r\n <strong>Quote to State:</strong> {{.quote.values.QuoteToState}}<strong><br>\r\n <strong>Quote to Postal Code:</strong> {{.quote.values.QuoteToPostalCode}}<br>\r\n <strong>Quote to Country:</strong> {{.quote.values.QuoteToCountry}}\r\n </td>\r\n <td valign=\"top\">\r\n <strong>Ship To</strong><br>\r\n <br>\r\n <strong>Ship to Name:</strong> {{.quote.values.ShippingName}}<br>\r\n <strong>Ship to Street:</strong> {{.quote.values.ShippingStreet}}<br>\r\n <strong>Ship to City:</strong> {{.quote.values.ShippingCity}}<br>\r\n <strong>Ship to State:</strong> {{.quote.values.ShippingState}}<strong><br>\r\n <strong>Ship to Postal Code:</strong> {{.quote.values.ShippingPostalCode}}<br>\r\n <strong>Ship to Country:</strong> {{.quote.values.ShippingCountry}}\r\n </td>\r\n </tr>\r\n</table>"
meta:
short: quote
description: quote
lead_converted_content:
type: text/html
template: |
<h2 style="color: #568ba2;text-align: center;">The following lead has been converted:</h2>
{{template "record_table" .account }}
meta:
short: Lead Converted (Content)
description: The lead was converted
lead_converted_subject:
type: text/plain
template: Lead {{ .lead.values.FirstName }} {{ .lead.values.LastName }} from {{ .lead.values.Company }} has been converted
meta:
short: Lead Converted (subject)
description: lead_converted_subject
+5 -4
View File
@@ -6055,6 +6055,7 @@ modules:
CampaignId:
label: Primary Campaign Source
kind: Record
multi: true
options:
labelField: Name
module: Campaigns
@@ -7541,7 +7542,7 @@ modules:
expressions:
validators:
- test: "value < 0"
error: Discount cannot be a negative number
error: Discount can not be a negative number
Email:
label: Email
kind: Email
@@ -8616,7 +8617,7 @@ modules:
expressions:
validators:
- test: "value < 0"
error: Shipping and Handling cannot be a negative number
error: Shipping and Handling can not be a negative number
Status:
label: Status
@@ -8650,7 +8651,7 @@ modules:
expressions:
validators:
- test: "value < 0"
error: Sub total cannot be a negative number
error: Sub total can not be a negative number
Tax:
label: Tax
kind: Number
@@ -8661,7 +8662,7 @@ modules:
expressions:
validators:
- test: "value < 0"
error: Tax cannot be a negative number
error: Tax can not be a negative number
TotalPrice:
label: Total Price (calculated)
kind: Number
+28 -15
View File
@@ -415,11 +415,13 @@ pages:
- enabled: true
label: Convert this Lead into an Account
resourceType: compose:record
script: /client-scripts/compose/crm/Lead/ToAccount.js:default
workflow: CRM-Lead-ToAccount
stepID: 3
- enabled: true
label: Convert this Lead into an Account and Opportunity
resourceType: compose:record
script: /client-scripts/compose/crm/Lead/ToAccountAndOpportunity.js:default
workflow: CRM-Lead-ToAccountAndOpportunity
stepID: 77
sealed: false
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
@@ -790,16 +792,19 @@ pages:
- enabled: true
label: Create new Opportunity from this Account
resourceType: compose:record
script: /client-scripts/compose/crm/Account/CreateNewOpportunity.js:default
workflow: CRM-Account-CreateNewOpportunity
stepID: 3
- enabled: true
label: Create new Contract from this Account
resourceType: compose:record
script: /client-scripts/compose/crm/Account/CreateNewContract.js:default
workflow: CRM-Account-CreateNewContract
stepID: 3
- enabled: true
label: Create new Case from this Account
resourceType: compose:record
script: /client-scripts/compose/crm/Account/CreateNewCase.js:default
sealed: false
workflow: CRM-Account-CreateNewCase
stepID: 14
sealed: false
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: Automation
@@ -1033,7 +1038,8 @@ pages:
- enabled: true
label: Create a new Case for this Contact and Account
resourceType: compose:record
script: /client-scripts/compose/crm/Contact/CreateNewCase.js:default
workflow: CRM-Contact-CreateNewCase
stepID: 3
sealed: false
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
@@ -1310,11 +1316,13 @@ pages:
label: Update prices of Products by applying the selected Price
Book and inserted discounts
resourceType: compose:record
script: /client-scripts/compose/crm/Opportunity/ApplyPriceBook.js:default
workflow: CRM-Opportunity-ApplyPriceBook
stepID: 3
- enabled: true
label: Create a new Quote for this Opportunity
resourceType: compose:record
script: /client-scripts/compose/crm/Opportunity/NewQuote.js:default
workflow: CRM-Opportunity-NewQuote
stepID: 3
sealed: false
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
@@ -1649,12 +1657,14 @@ pages:
buttons:
- enabled: true
label: Send this Quote via email to the primary contact
resourceType: compose:record
script: /client-scripts/compose/crm/Quote/SendToPriContact.js:default
resourceType: compose:record,
workflow: CRM-Quote-SendToPriContact
stepID: 3
- enabled: true
label: Send this Quote to a custom email
resourceType: compose:record
script: /client-scripts/compose/crm/Quote/SendToCustomEmail.js:default
workflow: CRM-Quote-SendToCustomEmail
stepID: 3
sealed: false
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
@@ -3787,15 +3797,18 @@ pages:
- enabled: true
label: Set Case status to Working
resourceType: compose:record
script: /client-scripts/compose/crm/Case/SetStatusToWorking.js:default
workflow: CRM-Case-SetStatusToWorking
stepID: 21
- enabled: true
label: Set Case status to Closed
resourceType: compose:record
script: /client-scripts/compose/crm/Case/SetStatusToClosed.js:default
workflow: CRM-Case-SetStatusToClosed
stepID: 3
- enabled: true
label: Inform the contact via email of the Case solution
resourceType: compose:record
script: /client-scripts/compose/crm/Case/InformContact.js:default
workflow: CRM-Case-InformContact
stepID: 14
sealed: false
style:
variants: {border: primary, headerText: primary}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,13 @@
templates:
case_update_subject:
type: text/plain
template: 'Case: [{{.case.values.Number}}] {{.case.values.Subject}}'
meta:
short: case_update_subject
description: case_update_subject
case_update_content:
type: text/html
template: "<p>\n Dear {{.contact.values.FirstName}},\n\n We are contacting you with regard to the case \"{{.case.values.Subject}}\".\n \n {{.reason}}\n \n You can reply directly to this email. When replying, please make sure the ticket ID is kept in the subject so we can track your replies.\n \n Kind regards,\n \n The service team\n</p>"
meta:
short: case_update_content
description: case_update_content
@@ -878,6 +878,15 @@ modules:
PreviousStatus:
label: PreviousStatus
kind: String
CaseSysTemplate:
label: Case Email Template
kind: Select
default: case_update
options:
options:
- text: Default Case update template
value: case_update
selectType: default
Contact:
(envoy): { onExisting: "skip" }
name: Contact
@@ -1618,83 +1627,6 @@ modules:
format: "0.00"
precision: "2"
prefix: $
EmailMessage:
(envoy): { onExisting: "skip" }
name: EmailMessage
meta: '{}'
fields:
HtmlBody:
label: Body
kind: String
options:
multiLine: true
useRichTextEditor: true
MessageDate:
label: Message Sent Date
kind: String
ContactId:
label: Contact
kind: Record
options:
labelField: RecordLabel
module: Contact
queryFields:
- RecordLabel
selectType: default
Status:
label: Status
kind: Select
options:
options:
- Draft
- Sent
selectType: default
ToAddress:
label: To Address
kind: Email
Subject:
label: Subject
kind: String
EmailTemplateId:
label: Email Template
kind: Record
options:
labelField: Name
module: EmailTemplate
queryFields:
- Name
selectType: default
CaseId:
label: Case
kind: Record
options:
labelField: Number
module: Case
queryFields:
- Number
selectType: default
EmailTemplate:
(envoy): { onExisting: "skip" }
name: EmailTemplate
meta: '{}'
fields:
Name:
label: Email Template Name
kind: String
Subject:
label: Subject
kind: String
Body:
label: Body
kind: String
options:
multiLine: true
useRichTextEditor: true
Description:
label: Description
kind: String
options:
multiLine: true
Entitlement:
(envoy): { onExisting: "skip" }
name: Entitlement
@@ -1991,21 +1923,9 @@ modules:
format: "0.00"
precision: 2
suffix: ' hour(s)'
DefaultSupportChannel:
label: Default support channel id
kind: String
DefaultCaseRecordLink:
label: Default case link
kind: String
DefaultCaseEmailTemplate:
label: Default case email template
kind: Record
options:
labelField: Name
module: EmailTemplate
queryFields:
- Name
selectType: default
Update:
(envoy): { onExisting: "skip" }
name: Update
+8 -174
View File
@@ -157,10 +157,11 @@ pages:
options:
fields:
- name: Subject
- name: CaseSysTemplate
style:
variants: {bodyBg: white, border: success, headerBg: white, headerText: success}
kind: Record
xywh: [3, 0, 6, 3]
xywh: [3, 0, 6, 5]
- title: Updates
options:
fields:
@@ -184,7 +185,7 @@ pages:
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: RecordList
xywh: [3, 5, 6, 13]
xywh: [3, 5, 6, 11]
- title: Related Attachments
options:
fields:
@@ -230,11 +231,13 @@ pages:
- enabled: true
label: Add Update to this Case
resourceType: compose:record
script: /client-scripts/compose/service-solution/Case/AddUpdate.js:default
workflow: ServiceSolution-Case-AddUpdate
stepID: 3
- enabled: true
label: Create email for this Case
label: Send Email for this Case with custom reason
resourceType: compose:record
script: /client-scripts/compose/service-solution/Case/CreateEmail.js:default
workflow: ServiceSolution-Case-SendEmail
stepID: 3
sealed: false
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
@@ -630,92 +633,6 @@ pages:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: RecordList
xywh: [0, 11, 9, 9]
- title: Emails
options:
allowExport: true
fields:
- name: ToAddress
- name: Subject
- name: HtmlBody
- name: EmailTemplateId
- name: Status
- name: MessageDate
- name: createdAt
module: EmailMessage
page: RecordPageForModuleEmailMessage
perPage: 20
prefilter: ContactId = ${recordID}
presort: createdAt DESC
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: RecordList
xywh: [0, 20, 9, 9]
pages:
- handle: RecordPageForModuleEmailMessage
(envoy): { onExisting: "skip" }
module: EmailMessage
title: Record page for module "Email Message"
blocks:
- title: Message
options:
fields:
- name: Subject
- name: HtmlBody
style:
variants: {bodyBg: white, border: primary, headerBg: white,
headerText: primary}
kind: Record
xywh: [0, 0, 6, 16]
- title: To
options:
fields:
- name: ContactId
- name: CaseId
style:
variants: {bodyBg: white, border: primary, headerBg: white,
headerText: primary}
kind: Record
xywh: [6, 0, 3, 8]
- title: Template
options:
fields:
- name: EmailTemplateId
style:
variants: {bodyBg: white, border: primary, headerBg: white,
headerText: primary}
kind: Record
xywh: [6, 8, 3, 8]
- title: Status
options:
fields:
- name: Status
- name: MessageDate
- name: createdBy
- name: createdAt
style:
variants: {bodyBg: white, border: primary, headerBg: white,
headerText: primary}
kind: Record
xywh: [9, 0, 3, 8]
- title: Actions
options:
buttons:
- enabled: true
label: Load selected template in to email message
variant: primary
resourceType: compose:record
script: /client-scripts/compose/service-solution/EmailMessage/TemplateLoad.js:default
- enabled: true
label: Send email to the contact
variant: success
resourceType: compose:record
script: /client-scripts/compose/service-solution/EmailMessage/SendEmail.js:default
style:
variants: {bodyBg: white, border: primary, headerBg: white,
headerText: primary}
kind: Automation
xywh: [9, 8, 3, 8]
visible: false
visible: false
visible: true
- handle: Entitlements
@@ -1365,9 +1282,7 @@ pages:
- name: DefaultCostPerHour
- name: DefaultDepartment
- name: DefaultTimeUpdate
- name: DefaultSupportChannel
- name: DefaultCaseRecordLink
- name: DefaultCaseEmailTemplate
hideAddButton: true
hidePaging: true
hideSearch: true
@@ -1392,91 +1307,10 @@ pages:
- name: DefaultCostPerHour
- name: DefaultDepartment
- name: DefaultTimeUpdate
- name: DefaultSupportChannel
- name: DefaultCaseRecordLink
- name: DefaultCaseEmailTemplate
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: Record
xywh: [0, 0, 6, 17]
visible: false
- handle: EmailTemplates
(envoy): { onExisting: "skip" }
title: Email Templates
blocks:
- title: Email Templates
options:
allowExport: true
draggable: false
editFields: []
editable: false
fields:
- name: Name
- name: Subject
- name: Description
- name: createdAt
hideRecordCloneButton: true
hideRecordEditButton: false
hideRecordReminderButton: true
hideRecordViewButton: true
module: EmailTemplate
perPage: 20
prefilter: ""
presort: Name ASC
selectMode: multi
selectable: true
selectionButtons: []
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: RecordList
xywh: [0, 0, 12, 16]
pages:
- handle: RecordPageForModuleEmailTemplate
(envoy): { onExisting: "skip" }
module: EmailTemplate
title: Record page for module "Email Template"
blocks:
- title: Template
options:
fields:
- name: Name
- name: Description
- name: Subject
- name: Body
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: Record
xywh: [0, 0, 8, 12]
- title: Other Information
options:
fields:
- name: createdBy
- name: createdAt
- name: updatedBy
- name: updatedAt
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: Record
xywh: [8, 0, 4, 12]
- title: Template is used in following emails
options:
allowExport: true
fields:
- name: Subject
- name: CaseId
- name: ContactId
- name: ToAddress
- name: Status
- name: MessageDate
module: EmailMessage
page: RecordPageForModuleEmailMessage
perPage: 20
prefilter: EmailTemplateId = ${recordID}
presort: createdAt DESC
style:
variants: {bodyBg: white, border: primary, headerBg: white, headerText: primary}
kind: RecordList
xywh: [0, 12, 12, 10]
visible: false
visible: true
visible: true
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+4
View File
@@ -32,17 +32,21 @@ function cleanup {
download
copyExtConfig 700 crm 0001_templates
copyExtConfig 700 crm 1000_namespace
copyExtConfig 700 crm 1100_modules
copyExtConfig 700 crm 1200_charts
copyExtConfig 700 crm 1400_pages
copyExtConfig 700 crm 1500_record_settings
copyExtConfig 700 crm 1600_workflows
copyExtConfig 701 service-solution 0001_templates
copyExtConfig 701 service-solution 1000_namespace
copyExtConfig 701 service-solution 1100_modules
copyExtConfig 701 service-solution 1200_charts
copyExtConfig 701 service-solution 1400_pages
copyExtConfig 701 service-solution 1500_record_settings
copyExtConfig 701 service-solution 1600_workflows
cleanup