From 10a354e47905bfb1e56365e91873f8273dffbd9e Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 16 Mar 2023 11:04:12 -0700 Subject: [PATCH] IO-2220 Customer List Report Customer List report for Loewen Body Shop --- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + client/src/utils/TemplateConstants.js | 14 ++++++++++++++ 4 files changed, 17 insertions(+) diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index ab797cddc..60ad940b6 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -2428,6 +2428,7 @@ "credits_not_received_date": "Credits not Received by Date", "credits_not_received_date_vendorid": "Credits not Received by Vendor", "csi": "CSI Responses", + "customer_list": "Customer List", "cycle_time_analysis": "Cycle Time Analysis", "estimates_written_converted": "Estimates Written/Converted", "estimator_detail": "Jobs by Estimator (Detail)", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 375272c4b..2676a7613 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -2428,6 +2428,7 @@ "credits_not_received_date": "", "credits_not_received_date_vendorid": "", "csi": "", + "customer_list": "", "cycle_time_analysis": "", "estimates_written_converted": "", "estimator_detail": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index b727dc0de..3c4ceb341 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -2428,6 +2428,7 @@ "credits_not_received_date": "", "credits_not_received_date_vendorid": "", "csi": "", + "customer_list": "", "cycle_time_analysis": "", "estimates_written_converted": "", "estimator_detail": "", diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index 6f6891bc8..fd9ec5c07 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -1855,6 +1855,20 @@ export const TemplateList = (type, context) => { }, group: "jobs", }, + customer_list: { + title: i18n.t("reportcenter.templates.customer_list"), + subject: i18n.t( + "reportcenter.templates.customer_list" + ), + key: "customer_list", + //idtype: "vendor", + disabled: false, + rangeFilter: { + object: i18n.t("reportcenter.labels.objects.jobs"), + field: i18n.t("jobs.fields.date_invoiced"), + }, + group: "customers", + }, } : {}), ...(!type || type === "courtesycarcontract"