From 038aaf249efddd3c85f9aa51dbd099d9a2edd094 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Wed, 8 Feb 2023 18:37:10 -0800 Subject: [PATCH] IO-2160 Purchase & Return Ratio by Vendor Reports --- client/src/translations/en_us/common.json | 2 ++ client/src/translations/es/common.json | 2 ++ client/src/translations/fr/common.json | 2 ++ client/src/utils/TemplateConstants.js | 28 +++++++++++++++++++++++ 4 files changed, 34 insertions(+) diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 332f350fd..8561cd2a7 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -2486,6 +2486,8 @@ "production_by_technician": "Production by Technician", "production_by_technician_one": "Production filtered by Technician", "psr_by_make": "Percent of Sales by Vehicle Make", + "purchase_return_ratio_grouped_by_vendor_detail": "Purchase & Return Ratio by Vendor (Detail)", + "purchase_return_ratio_grouped_by_vendor_summary": "Purchase & Return Ratio by Vendor (Summary)", "purchases_by_cost_center_detail": "Purchases by Cost Center (Detail)", "purchases_by_cost_center_summary": "Purchases by Cost Center (Summary)", "purchases_by_date_range_detail": "Purchases by Date - Detail", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 2b7c7391b..27525eff9 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -2486,6 +2486,8 @@ "production_by_technician": "", "production_by_technician_one": "", "psr_by_make": "", + "purchase_return_ratio_grouped_by_vendor_detail": "", + "purchase_return_ratio_grouped_by_vendor_summary": "", "purchases_by_cost_center_detail": "", "purchases_by_cost_center_summary": "", "purchases_by_date_range_detail": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 381fe267b..5fdda7707 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -2486,6 +2486,8 @@ "production_by_technician": "", "production_by_technician_one": "", "psr_by_make": "", + "purchase_return_ratio_grouped_by_vendor_detail": "", + "purchase_return_ratio_grouped_by_vendor_summary": "", "purchases_by_cost_center_detail": "", "purchases_by_cost_center_summary": "", "purchases_by_date_range_detail": "", diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index 9ae638b2f..6c72e8fa4 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -1813,6 +1813,34 @@ export const TemplateList = (type, context) => { }, group: "jobs", }, + purchase_return_ratio_grouped_by_vendor_detail: { + title: i18n.t("reportcenter.templates.purchase_return_ratio_grouped_by_vendor_detail"), + subject: i18n.t( + "reportcenter.templates.purchase_return_ratio_grouped_by_vendor_detail" + ), + key: "purchase_return_ratio_grouped_by_vendor_detail", + //idtype: "vendor", + disabled: false, + rangeFilter: { + object: i18n.t("reportcenter.labels.objects.bills"), + field: i18n.t("bills.fields.date"), + }, + group: "purchases", + }, + purchase_return_ratio_grouped_by_vendor_summary: { + title: i18n.t("reportcenter.templates.purchase_return_ratio_grouped_by_vendor_summary"), + subject: i18n.t( + "reportcenter.templates.purchase_return_ratio_grouped_by_vendor_summary" + ), + key: "purchase_return_ratio_grouped_by_vendor_summary", + //idtype: "vendor", + disabled: false, + rangeFilter: { + object: i18n.t("reportcenter.labels.objects.bills"), + field: i18n.t("bills.fields.date"), + }, + group: "purchases", + }, } : {}), ...(!type || type === "courtesycarcontract"