From 29bbf2f016dd73bb65a38722ff01fe681a0edf2b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 7 Apr 2021 09:13:19 -0700 Subject: [PATCH] IO-840 Update vendor labels. --- bodyshop_translations.babel | 42 +++++++++++++++++++ ...me-tickets-summary-employees.component.jsx | 4 +- 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 | 10 +++++ 6 files changed, 60 insertions(+), 2 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index bc72f7044..bbd145616 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -10996,6 +10996,27 @@ + + name + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + rate_type false @@ -28302,6 +28323,27 @@ templates + + attendance_employee + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + credits_not_received_date false diff --git a/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx b/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx index f2f613979..4c41b0d95 100644 --- a/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx +++ b/client/src/components/time-tickets-summary-employees/time-tickets-summary-employees.component.jsx @@ -143,7 +143,7 @@ const JobRelatedTicketsTable = ({ const columns = [ { - title: t("bills.fields.vendorname"), + title: t("employees.labels.name"), dataIndex: "empname", key: "empname", sorter: (a, b) => alphaSort(a.empname, b.empname), @@ -254,7 +254,7 @@ const ShiftRelatedTicketsTable = ({ const columns = [ { - title: t("bills.fields.vendorname"), + title: t("employees.labels.name"), dataIndex: "empname", key: "empname", sorter: (a, b) => alphaSort(a.empname, b.empname), diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 0b707a48c..c0fd2c851 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -713,6 +713,7 @@ "labels": { "actions": "Actions", "flat_rate": "Flat Rate", + "name": "Name", "rate_type": "Rate Type", "straight_time": "Straight Time" }, @@ -1708,6 +1709,7 @@ "vendor": "Vendor" }, "templates": { + "attendance_employee": "Employee Attendance", "credits_not_received_date": "Credits not Received by Date", "estimator_detail": "Jobs by Estimator (Detail)", "estimator_summary": "Jobs by Estimator (Summary)", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 2402757e5..ed64abe6c 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -713,6 +713,7 @@ "labels": { "actions": "", "flat_rate": "", + "name": "", "rate_type": "", "straight_time": "" }, @@ -1708,6 +1709,7 @@ "vendor": "" }, "templates": { + "attendance_employee": "", "credits_not_received_date": "", "estimator_detail": "", "estimator_summary": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 768d82148..7c36e2c0a 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -713,6 +713,7 @@ "labels": { "actions": "", "flat_rate": "", + "name": "", "rate_type": "", "straight_time": "" }, @@ -1708,6 +1709,7 @@ "vendor": "" }, "templates": { + "attendance_employee": "", "credits_not_received_date": "", "estimator_detail": "", "estimator_summary": "", diff --git a/client/src/utils/TemplateConstants.js b/client/src/utils/TemplateConstants.js index 1a6b49802..d83094c8b 100644 --- a/client/src/utils/TemplateConstants.js +++ b/client/src/utils/TemplateConstants.js @@ -399,6 +399,16 @@ export const TemplateList = (type, context) => { idtype: "employee", disabled: false, }, + + attendance_employee: { + title: i18n.t("reportcenter.templates.attendance_employee"), + description: "Est Detail", + subject: i18n.t("reportcenter.templates.attendance_employee"), + key: "attendance_employee", + idtype: "employee", + disabled: false, + }, + timetickets_summary: { title: i18n.t("reportcenter.templates.timetickets_summary"), description: "Est Detail",