From 6b52723ba99ce80c7591f5fb1758cd7a609bc6fe Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Mon, 24 Jul 2023 15:43:34 -0700 Subject: [PATCH] IO-2356 Auto CC for Parts Return --- .../shop-info/shop-info.general.component.jsx | 12 ++++++++++++ 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 | 9 ++++++++- 5 files changed, 23 insertions(+), 1 deletion(-) diff --git a/client/src/components/shop-info/shop-info.general.component.jsx b/client/src/components/shop-info/shop-info.general.component.jsx index 416d2f658..99245c76e 100644 --- a/client/src/components/shop-info/shop-info.general.component.jsx +++ b/client/src/components/shop-info/shop-info.general.component.jsx @@ -602,6 +602,18 @@ export default function ShopInfoGeneral({ form }) { > + { }, parts_return_slip: { title: i18n.t("printcenter.jobs.parts_return_slip"), - subject: i18n.t("printcenter.jobs.parts_return_slip"), + subject: i18n.t("printcenter.subjects.jobs.parts_return_slip", { + ro_number: context && context.job && context.job.ro_number, + name: ( + (context && context.job && context.job.ownr_ln) || + (context && context.job && context.job.ownr_co_nm) || + "" + ).trim(), + }), description: "", key: "parts_return_slip", disabled: false,