From 0c9b8508727310c2a06aa9d637e38ec77fe6b111 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Thu, 29 Jul 2021 14:05:46 -0700
Subject: [PATCH] Add several reports to report center.
---
bodyshop_translations.babel | 126 ++++++++++++++++++++++
client/src/translations/en_us/common.json | 6 ++
client/src/translations/es/common.json | 6 ++
client/src/translations/fr/common.json | 6 ++
client/src/utils/TemplateConstants.js | 48 +++++++++
5 files changed, 192 insertions(+)
diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel
index 194b68d3a..22f214543 100644
--- a/bodyshop_translations.babel
+++ b/bodyshop_translations.babel
@@ -32760,6 +32760,27 @@
+
+ parts_orders
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
payments
false
@@ -32781,6 +32802,27 @@
+
+ scoreboard
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
timetickets
false
@@ -33565,6 +33607,27 @@
+
+ lag_time
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
open_orders
false
@@ -33670,6 +33733,27 @@
+
+ parts_not_recieved
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
payments_by_date
false
@@ -34006,6 +34090,48 @@
+
+ scoreboard_detail
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
+
+ scoreboard_summary
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
supplement_ratio_ins_co
false
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index f3dfec0d0..517dadfdd 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -1974,7 +1974,9 @@
"bills": "Bills",
"exportlogs": "Export Logs",
"jobs": "Jobs",
+ "parts_orders": "Parts Orders",
"payments": "Payments",
+ "scoreboard": "Scoreboard",
"timetickets": "Timetickets"
},
"vendor": "Vendor"
@@ -2015,11 +2017,13 @@
"job_costing_ro_date_summary": "Job Costing by RO - Summary",
"job_costing_ro_estimator": "Job Costing by Estimator",
"job_costing_ro_ins_co": "Job Costing by RO Source",
+ "lag_time": "Lag Time",
"open_orders": "Open Orders by Date",
"open_orders_csr": "Open Orders by CSR",
"open_orders_estimator": "Open Orders by Estimator",
"open_orders_ins_co": "Open Orders by Insurance Company",
"parts_backorder": "Backordered Parts",
+ "parts_not_recieved": "Parts Not Received",
"payments_by_date": "Payments by Date",
"payments_by_date_type": "Payments by Date and Type",
"production_by_csr": "Production by CSR",
@@ -2036,6 +2040,8 @@
"purchases_grouped_by_vendor_detailed": "Purchases Grouped by Vendor - Detailed",
"purchases_grouped_by_vendor_summary": "Purchases Grouped by Vendor - Summary",
"schedule": "Appointment Schedule",
+ "scoreboard_detail": "Scoreboard Detail",
+ "scoreboard_summary": "Scoreboard Summary",
"supplement_ratio_ins_co": "Supplement Ratio by Source",
"thank_you_date": "Thank You Letters",
"timetickets": "Time Tickets",
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index 78f6490d3..881d830fc 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -1974,7 +1974,9 @@
"bills": "",
"exportlogs": "",
"jobs": "",
+ "parts_orders": "",
"payments": "",
+ "scoreboard": "",
"timetickets": ""
},
"vendor": ""
@@ -2015,11 +2017,13 @@
"job_costing_ro_date_summary": "",
"job_costing_ro_estimator": "",
"job_costing_ro_ins_co": "",
+ "lag_time": "",
"open_orders": "",
"open_orders_csr": "",
"open_orders_estimator": "",
"open_orders_ins_co": "",
"parts_backorder": "",
+ "parts_not_recieved": "",
"payments_by_date": "",
"payments_by_date_type": "",
"production_by_csr": "",
@@ -2036,6 +2040,8 @@
"purchases_grouped_by_vendor_detailed": "",
"purchases_grouped_by_vendor_summary": "",
"schedule": "",
+ "scoreboard_detail": "",
+ "scoreboard_summary": "",
"supplement_ratio_ins_co": "",
"thank_you_date": "",
"timetickets": "",
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index c0838ead4..c4a9b0cc5 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -1974,7 +1974,9 @@
"bills": "",
"exportlogs": "",
"jobs": "",
+ "parts_orders": "",
"payments": "",
+ "scoreboard": "",
"timetickets": ""
},
"vendor": ""
@@ -2015,11 +2017,13 @@
"job_costing_ro_date_summary": "",
"job_costing_ro_estimator": "",
"job_costing_ro_ins_co": "",
+ "lag_time": "",
"open_orders": "",
"open_orders_csr": "",
"open_orders_estimator": "",
"open_orders_ins_co": "",
"parts_backorder": "",
+ "parts_not_recieved": "",
"payments_by_date": "",
"payments_by_date_type": "",
"production_by_csr": "",
@@ -2036,6 +2040,8 @@
"purchases_grouped_by_vendor_detailed": "",
"purchases_grouped_by_vendor_summary": "",
"schedule": "",
+ "scoreboard_detail": "",
+ "scoreboard_summary": "",
"supplement_ratio_ins_co": "",
"thank_you_date": "",
"timetickets": "",
diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js
index 814ca715b..f3414e33a 100644
--- a/client/src/utils/TemplateConstants.js
+++ b/client/src/utils/TemplateConstants.js
@@ -1190,6 +1190,54 @@ export const TemplateList = (type, context) => {
field: i18n.t("jobs.fields.date_open"),
},
},
+ lag_time: {
+ title: i18n.t("reportcenter.templates.lag_time"),
+ description: "",
+ subject: i18n.t("reportcenter.templates.lag_time"),
+ key: "lag_time",
+ //idtype: "vendor",
+ disabled: false,
+ rangeFilter: {
+ object: i18n.t("reportcenter.labels.objects.jobs"),
+ field: i18n.t("jobs.fields.date_invoiced"),
+ },
+ },
+ parts_not_recieved: {
+ title: i18n.t("reportcenter.templates.parts_not_recieved"),
+ description: "",
+ subject: i18n.t("reportcenter.templates.parts_not_recieved"),
+ key: "parts_not_recieved",
+ //idtype: "vendor",
+ disabled: false,
+ rangeFilter: {
+ object: i18n.t("reportcenter.labels.objects.parts_orders"),
+ field: i18n.t("parts_orders.fields.order_date"),
+ },
+ },
+ scoreboard_detail: {
+ title: i18n.t("reportcenter.templates.scoreboard_detail"),
+ description: "",
+ subject: i18n.t("reportcenter.templates.scoreboard_detail"),
+ key: "scoreboard_detail",
+ //idtype: "vendor",
+ disabled: false,
+ rangeFilter: {
+ object: i18n.t("reportcenter.labels.objects.scoreboard"),
+ field: i18n.t("scoreboard.fields.date"),
+ },
+ },
+ scoreboard_summary: {
+ title: i18n.t("reportcenter.templates.scoreboard_summary"),
+ description: "",
+ subject: i18n.t("reportcenter.templates.scoreboard_summary"),
+ key: "scoreboard_summary",
+ //idtype: "vendor",
+ disabled: false,
+ rangeFilter: {
+ object: i18n.t("reportcenter.labels.objects.scoreboard"),
+ field: i18n.t("scoreboard.fields.date"),
+ },
+ },
}
: {}),
...(!type || type === "courtesycarcontract"