Added templates.

This commit is contained in:
Patrick Fic
2021-02-12 11:40:02 -08:00
parent 77a06014cf
commit 99b652e078
7 changed files with 267 additions and 15 deletions

View File

@@ -23675,6 +23675,53 @@
<folder_node> <folder_node>
<name>printcenter</name> <name>printcenter</name>
<children> <children>
<folder_node>
<name>courtesycarcontract</name>
<children>
<concept_node>
<name>courtesy_car_contract</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>courtesy_car_terms</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
</children>
</folder_node>
<folder_node> <folder_node>
<name>errors</name> <name>errors</name>
<children> <children>
@@ -24024,6 +24071,27 @@
</translation> </translation>
</translations> </translations>
</concept_node> </concept_node>
<concept_node>
<name>appointment_reminder</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node> <concept_node>
<name>casl_authorization</name> <name>casl_authorization</name>
<definition_loaded>false</definition_loaded> <definition_loaded>false</definition_loaded>
@@ -24297,6 +24365,90 @@
</translation> </translation>
</translations> </translations>
</concept_node> </concept_node>
<concept_node>
<name>worksheet_by_line_number</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>worksheet_sorted_by_operation</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>worksheet_sorted_by_operation_no_hours</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>worksheet_sorted_by_operation_part_type</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
</children> </children>
</folder_node> </folder_node>
<folder_node> <folder_node>
@@ -25140,7 +25292,7 @@
<name>templates</name> <name>templates</name>
<children> <children>
<concept_node> <concept_node>
<name>payment_by_date</name> <name>payments_by_date_type</name>
<definition_loaded>false</definition_loaded> <definition_loaded>false</definition_loaded>
<description></description> <description></description>
<comment></comment> <comment></comment>

View File

@@ -1,4 +1,4 @@
import { Button, Space } from "antd"; import { Button } from "antd";
import React from "react"; import React from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";

View File

@@ -34,7 +34,7 @@ export function PrintCenterJobsComponent({ printCenterModal }) {
<Col {...colSpan}> <Col {...colSpan}>
<Collapse accordion> <Collapse accordion>
<Collapse.Panel header={t("printcenter.labels.repairorder")}> <Collapse.Panel header={t("printcenter.labels.repairorder")}>
<ul style={{ columns: "3 auto" }}> <ul style={{ columns: "2 auto" }}>
{JobsReportsList.map((item) => ( {JobsReportsList.map((item) => (
<PrintCenterItem <PrintCenterItem
key={item.key} key={item.key}

View File

@@ -1441,6 +1441,10 @@
} }
}, },
"printcenter": { "printcenter": {
"courtesycarcontract": {
"courtesy_car_contract": "Courtesy Car Contract",
"courtesy_car_terms": "Courtesy Car Terms"
},
"errors": { "errors": {
"nocontexttype": "No context type set." "nocontexttype": "No context type set."
}, },
@@ -1462,6 +1466,7 @@
}, },
"3rdpartypayer": "Third Party Payer", "3rdpartypayer": "Third Party Payer",
"appointment_confirmation": "Appointment Confirmation", "appointment_confirmation": "Appointment Confirmation",
"appointment_reminder": "Appointment Reminder",
"casl_authorization": "CASL Authorization", "casl_authorization": "CASL Authorization",
"diagnostic_authorization": "Diagnostic Authorization", "diagnostic_authorization": "Diagnostic Authorization",
"estimate_detail": "Estimate Details", "estimate_detail": "Estimate Details",
@@ -1474,7 +1479,11 @@
"ro_with_description": "RO Summary with Descriptions", "ro_with_description": "RO Summary with Descriptions",
"thirdpartypayer": "Third Party Payer", "thirdpartypayer": "Third Party Payer",
"window_tag": "Window Tag", "window_tag": "Window Tag",
"work_authorization": "Work Authorization" "work_authorization": "Work Authorization",
"worksheet_by_line_number": "Worksheet by Line Number",
"worksheet_sorted_by_operation": "Worksheet by Operation",
"worksheet_sorted_by_operation_no_hours": "Worksheet by Operation (No Hours)",
"worksheet_sorted_by_operation_part_type": "Worksheet by Operation & Part Type"
}, },
"labels": { "labels": {
"misc": "Miscellaneous Documents", "misc": "Miscellaneous Documents",
@@ -1538,7 +1547,7 @@
"key": "Report" "key": "Report"
}, },
"templates": { "templates": {
"payment_by_date": "Payments by Date Range" "payments_by_date_type": "Payments by Date Range"
} }
}, },
"scoreboard": { "scoreboard": {

View File

@@ -1441,6 +1441,10 @@
} }
}, },
"printcenter": { "printcenter": {
"courtesycarcontract": {
"courtesy_car_contract": "",
"courtesy_car_terms": ""
},
"errors": { "errors": {
"nocontexttype": "" "nocontexttype": ""
}, },
@@ -1462,6 +1466,7 @@
}, },
"3rdpartypayer": "", "3rdpartypayer": "",
"appointment_confirmation": "", "appointment_confirmation": "",
"appointment_reminder": "",
"casl_authorization": "", "casl_authorization": "",
"diagnostic_authorization": "", "diagnostic_authorization": "",
"estimate_detail": "", "estimate_detail": "",
@@ -1474,7 +1479,11 @@
"ro_with_description": "", "ro_with_description": "",
"thirdpartypayer": "", "thirdpartypayer": "",
"window_tag": "", "window_tag": "",
"work_authorization": "" "work_authorization": "",
"worksheet_by_line_number": "",
"worksheet_sorted_by_operation": "",
"worksheet_sorted_by_operation_no_hours": "",
"worksheet_sorted_by_operation_part_type": ""
}, },
"labels": { "labels": {
"misc": "", "misc": "",
@@ -1538,7 +1547,7 @@
"key": "" "key": ""
}, },
"templates": { "templates": {
"payment_by_date": "" "payments_by_date_type": ""
} }
}, },
"scoreboard": { "scoreboard": {

View File

@@ -1441,6 +1441,10 @@
} }
}, },
"printcenter": { "printcenter": {
"courtesycarcontract": {
"courtesy_car_contract": "",
"courtesy_car_terms": ""
},
"errors": { "errors": {
"nocontexttype": "" "nocontexttype": ""
}, },
@@ -1462,6 +1466,7 @@
}, },
"3rdpartypayer": "", "3rdpartypayer": "",
"appointment_confirmation": "", "appointment_confirmation": "",
"appointment_reminder": "",
"casl_authorization": "", "casl_authorization": "",
"diagnostic_authorization": "", "diagnostic_authorization": "",
"estimate_detail": "", "estimate_detail": "",
@@ -1474,7 +1479,11 @@
"ro_with_description": "", "ro_with_description": "",
"thirdpartypayer": "", "thirdpartypayer": "",
"window_tag": "", "window_tag": "",
"work_authorization": "" "work_authorization": "",
"worksheet_by_line_number": "",
"worksheet_sorted_by_operation": "",
"worksheet_sorted_by_operation_no_hours": "",
"worksheet_sorted_by_operation_part_type": ""
}, },
"labels": { "labels": {
"misc": "", "misc": "",
@@ -1538,7 +1547,7 @@
"key": "" "key": ""
}, },
"templates": { "templates": {
"payment_by_date": "" "payments_by_date_type": ""
} }
}, },
"scoreboard": { "scoreboard": {

View File

@@ -75,6 +75,55 @@ export const TemplateList = (type, context) => {
key: "payments_by_job", key: "payments_by_job",
disabled: false, disabled: false,
}, },
appointment_reminder: {
title: i18n.t("printcenter.jobs.appointment_reminder"),
description: "All Jobs Notes",
subject: `${i18n.t("printcenter.jobs.appointment_reminder")} - ${
context && context.job && context.job.ro_number
}`,
key: "appointment_reminder",
disabled: false,
},
worksheet_by_line_number: {
title: i18n.t("printcenter.jobs.worksheet_by_line_number"),
description: "All Jobs Notes",
subject: `${i18n.t(
"printcenter.jobs.worksheet_by_line_number"
)} - ${context && context.job && context.job.ro_number}`,
key: "worksheet_by_line_number",
disabled: false,
},
worksheet_sorted_by_operation: {
title: i18n.t("printcenter.jobs.worksheet_sorted_by_operation"),
description: "All Jobs Notes",
subject: `${i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation"
)} - ${context && context.job && context.job.ro_number}`,
key: "worksheet_sorted_by_operation",
disabled: false,
},
worksheet_sorted_by_operation_no_hours: {
title: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_no_hours"
),
description: "All Jobs Notes",
subject: `${i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_no_hours"
)} - ${context && context.job && context.job.ro_number}`,
key: "worksheet_sorted_by_operation_no_hours",
disabled: false,
},
worksheet_sorted_by_operation_part_type: {
title: i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_part_type"
),
description: "All Jobs Notes",
subject: `${i18n.t(
"printcenter.jobs.worksheet_sorted_by_operation_part_type"
)} - ${context && context.job && context.job.ro_number}`,
key: "worksheet_sorted_by_operation_part_type",
disabled: false,
},
} }
: {}), : {}),
...(!type || type === "job_special" ...(!type || type === "job_special"
@@ -148,13 +197,37 @@ export const TemplateList = (type, context) => {
: {}), : {}),
...(!type || type === "report_center" ...(!type || type === "report_center"
? { ? {
payment_by_date: { payments_by_date_type: {
title: i18n.t("reportcenter.templates.payment_by_date"), title: i18n.t("reportcenter.templates.payments_by_date_type"),
description: "Est Detail", description: "Est Detail",
subject: `${i18n.t("reportcenter.templates.payment_by_date")} - ${ subject: `${i18n.t(
context && context.job && context.job.ro_number "reportcenter.templates.payments_by_date_type"
}`, )} - ${context && context.job && context.job.ro_number}`,
key: "payment_by_date", key: "payments_by_date_type",
disabled: false,
},
}
: {}),
...(!type || type === "courtesycarcontract"
? {
courtesy_car_contract: {
title: i18n.t(
"printcenter.courtesycarcontract.courtesy_car_contract"
),
description: "Est Detail",
subject: `${i18n.t(
"printcenter.courtesycarcontract.courtesy_car_contract"
)} - ${context && context.job && context.job.ro_number}`,
key: "courtesy_car_contract",
disabled: false,
},
courtesy_car_terms: {
title: i18n.t("printcenter.courtesycarcontract.courtesy_car_terms"),
description: "Est Detail",
subject: `${i18n.t(
"printcenter.courtesycarcontract.courtesy_car_terms"
)} - ${context && context.job && context.job.ro_number}`,
key: "courtesy_car_terms",
disabled: false, disabled: false,
}, },
} }