Merged in feature/2021-06-25 (pull request #118)
Added missing template. Approved-by: Patrick Fic
This commit is contained in:
@@ -32403,6 +32403,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>production_by_csr</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>production_by_last_name</name>
|
<name>production_by_last_name</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -8,7 +8,17 @@
|
|||||||
<meta name="description" content="ImEX Online" />
|
<meta name="description" content="ImEX Online" />
|
||||||
<!-- <link rel="apple-touch-icon" href="logo192.png" /> -->
|
<!-- <link rel="apple-touch-icon" href="logo192.png" /> -->
|
||||||
<link rel="apple-touch-icon" href="logo192.png" />
|
<link rel="apple-touch-icon" href="logo192.png" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.$crisp = [];
|
||||||
|
window.CRISP_WEBSITE_ID = "36724f62-2eb0-4b29-9cdd-9905fb99913e";
|
||||||
|
(function () {
|
||||||
|
d = document;
|
||||||
|
s = d.createElement("script");
|
||||||
|
s.src = "https://client.crisp.chat/l.js";
|
||||||
|
s.async = 1;
|
||||||
|
d.getElementsByTagName("head")[0].appendChild(s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
!(function () {
|
!(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import { ConfigProvider } from "antd";
|
|||||||
import enLocale from "antd/es/locale/en_US";
|
import enLocale from "antd/es/locale/en_US";
|
||||||
import LogRocket from "logrocket";
|
import LogRocket from "logrocket";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import React, { useEffect } from "react";
|
import React from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
import GlobalLoadingBar from "../components/global-loading-bar/global-loading-bar.component";
|
import GlobalLoadingBar from "../components/global-loading-bar/global-loading-bar.component";
|
||||||
|
import JiraSupportComponent from "../components/jira-support-widget/jira-support-widget.component";
|
||||||
import client from "../utils/GraphQLClient";
|
import client from "../utils/GraphQLClient";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
import { useTranslation } from "react-i18next";
|
|
||||||
import JiraSupportComponent from "../components/jira-support-widget/jira-support-widget.component";
|
|
||||||
moment.locale("en-US");
|
moment.locale("en-US");
|
||||||
|
|
||||||
if (process.env.NODE_ENV === "production") LogRocket.init("gvfvfw/bodyshopapp");
|
if (process.env.NODE_ENV === "production") LogRocket.init("gvfvfw/bodyshopapp");
|
||||||
@@ -16,20 +16,20 @@ if (process.env.NODE_ENV === "production") LogRocket.init("gvfvfw/bodyshopapp");
|
|||||||
export default function AppContainer() {
|
export default function AppContainer() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
// Include the Crisp code here, without the <script></script> tags
|
// // Include the Crisp code here, without the <script></script> tags
|
||||||
window.$crisp = [];
|
// window.$crisp = [];
|
||||||
window.CRISP_WEBSITE_ID = "36724f62-2eb0-4b29-9cdd-9905fb99913e";
|
// window.CRISP_WEBSITE_ID = "36724f62-2eb0-4b29-9cdd-9905fb99913e";
|
||||||
var d = document;
|
// var d = document;
|
||||||
var s = d.createElement("script");
|
// var s = d.createElement("script");
|
||||||
s.src = "https://client.crisp.chat/l.js";
|
// s.src = "https://client.crisp.chat/l.js";
|
||||||
s.async = 1;
|
// s.async = 1;
|
||||||
d.getElementsByTagName("head")[0].appendChild(s);
|
// d.getElementsByTagName("head")[0].appendChild(s);
|
||||||
|
|
||||||
return () => {
|
// return () => {
|
||||||
d.getElementsByTagName("head")[0].removeChild(s);
|
// d.getElementsByTagName("head")[0].removeChild(s);
|
||||||
};
|
// };
|
||||||
}, []);
|
// }, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ApolloProvider client={client}>
|
<ApolloProvider client={client}>
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ export function PrintCenterJobsComponent({ printCenterModal }) {
|
|||||||
|
|
||||||
const filteredJobsReportsList =
|
const filteredJobsReportsList =
|
||||||
search !== ""
|
search !== ""
|
||||||
? JobsReportsList.filter((r) => r.title.toLowerCase().includes(search))
|
? JobsReportsList.filter((r) =>
|
||||||
|
r.title.toLowerCase().includes(search.toLowerCase())
|
||||||
|
)
|
||||||
: JobsReportsList;
|
: JobsReportsList;
|
||||||
|
|
||||||
//Group it, create cards, and then filter out.
|
//Group it, create cards, and then filter out.
|
||||||
|
|||||||
@@ -1935,6 +1935,7 @@
|
|||||||
"parts_backorder": "Backordered Parts",
|
"parts_backorder": "Backordered Parts",
|
||||||
"payments_by_date": "Payments by Date",
|
"payments_by_date": "Payments by Date",
|
||||||
"payments_by_date_type": "Payments by Date and Type",
|
"payments_by_date_type": "Payments by Date and Type",
|
||||||
|
"production_by_csr": "Production by CSR",
|
||||||
"production_by_last_name": "Production by Last Name",
|
"production_by_last_name": "Production by Last Name",
|
||||||
"production_by_repair_status": "Production by Status",
|
"production_by_repair_status": "Production by Status",
|
||||||
"production_by_ro": "Production by RO",
|
"production_by_ro": "Production by RO",
|
||||||
|
|||||||
@@ -1935,6 +1935,7 @@
|
|||||||
"parts_backorder": "",
|
"parts_backorder": "",
|
||||||
"payments_by_date": "",
|
"payments_by_date": "",
|
||||||
"payments_by_date_type": "",
|
"payments_by_date_type": "",
|
||||||
|
"production_by_csr": "",
|
||||||
"production_by_last_name": "",
|
"production_by_last_name": "",
|
||||||
"production_by_repair_status": "",
|
"production_by_repair_status": "",
|
||||||
"production_by_ro": "",
|
"production_by_ro": "",
|
||||||
|
|||||||
@@ -1935,6 +1935,7 @@
|
|||||||
"parts_backorder": "",
|
"parts_backorder": "",
|
||||||
"payments_by_date": "",
|
"payments_by_date": "",
|
||||||
"payments_by_date_type": "",
|
"payments_by_date_type": "",
|
||||||
|
"production_by_csr": "",
|
||||||
"production_by_last_name": "",
|
"production_by_last_name": "",
|
||||||
"production_by_repair_status": "",
|
"production_by_repair_status": "",
|
||||||
"production_by_ro": "",
|
"production_by_ro": "",
|
||||||
|
|||||||
@@ -328,6 +328,14 @@ export const TemplateList = (type, context) => {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
group: "ro",
|
group: "ro",
|
||||||
},
|
},
|
||||||
|
parts_label_multi: {
|
||||||
|
title: i18n.t("printcenter.jobs.parts_label_multi"),
|
||||||
|
description: "Thank You Letter by RO",
|
||||||
|
key: "parts_label_multi",
|
||||||
|
subject: i18n.t("printcenter.jobs.parts_label_multi"),
|
||||||
|
disabled: false,
|
||||||
|
group: "ro",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
...(!type || type === "job_special"
|
...(!type || type === "job_special"
|
||||||
@@ -1150,10 +1158,6 @@ export const TemplateList = (type, context) => {
|
|||||||
key: "production_by_last_name",
|
key: "production_by_last_name",
|
||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
rangeFilter: {
|
|
||||||
object: i18n.t("reportcenter.labels.objects.jobs"),
|
|
||||||
field: i18n.t("jobs.fields.date_open"),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
production_by_repair_status: {
|
production_by_repair_status: {
|
||||||
title: i18n.t("reportcenter.templates.production_by_repair_status"),
|
title: i18n.t("reportcenter.templates.production_by_repair_status"),
|
||||||
@@ -1164,10 +1168,6 @@ export const TemplateList = (type, context) => {
|
|||||||
key: "production_by_repair_status",
|
key: "production_by_repair_status",
|
||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
rangeFilter: {
|
|
||||||
object: i18n.t("reportcenter.labels.objects.jobs"),
|
|
||||||
field: i18n.t("jobs.fields.date_open"),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
production_by_target_date: {
|
production_by_target_date: {
|
||||||
title: i18n.t("reportcenter.templates.production_by_target_date"),
|
title: i18n.t("reportcenter.templates.production_by_target_date"),
|
||||||
@@ -1176,10 +1176,6 @@ export const TemplateList = (type, context) => {
|
|||||||
key: "production_by_target_date",
|
key: "production_by_target_date",
|
||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
rangeFilter: {
|
|
||||||
object: i18n.t("reportcenter.labels.objects.jobs"),
|
|
||||||
field: i18n.t("jobs.fields.date_open"),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
production_by_ro: {
|
production_by_ro: {
|
||||||
title: i18n.t("reportcenter.templates.production_by_ro"),
|
title: i18n.t("reportcenter.templates.production_by_ro"),
|
||||||
@@ -1188,10 +1184,14 @@ export const TemplateList = (type, context) => {
|
|||||||
key: "production_by_ro",
|
key: "production_by_ro",
|
||||||
//idtype: "vendor",
|
//idtype: "vendor",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
rangeFilter: {
|
},
|
||||||
object: i18n.t("reportcenter.labels.objects.jobs"),
|
production_by_csr: {
|
||||||
field: i18n.t("jobs.fields.date_open"),
|
title: i18n.t("reportcenter.templates.production_by_csr"),
|
||||||
},
|
description: "",
|
||||||
|
subject: i18n.t("reportcenter.templates.production_by_csr"),
|
||||||
|
key: "production_by_csr",
|
||||||
|
//idtype: "vendor",
|
||||||
|
disabled: false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
: {}),
|
: {}),
|
||||||
|
|||||||
5
client/src/utils/TemplateSpecial.jsx
Normal file
5
client/src/utils/TemplateSpecial.jsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export function PartsLabelMulti() {
|
||||||
|
return <div></div>;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user