From 47adb6d40abe83aaf368f6f99df77a7c30bb8935 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 20 Jun 2024 11:26:05 -0700 Subject: [PATCH] IO-2795 Delivery Date required on Delivery Checklist Signed-off-by: Allan Carr --- .../job-checklist-form.component.jsx | 16 ++++++++++++++-- .../shop-info/shop-info.intake.component.jsx | 12 ++++++++++++ client/src/translations/en_us/common.json | 3 ++- client/src/translations/es/common.json | 3 ++- client/src/translations/fr/common.json | 3 ++- 5 files changed, 32 insertions(+), 5 deletions(-) diff --git a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx index 2f901d818..a276fcb07 100644 --- a/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx +++ b/client/src/components/job-checklist/components/job-checklist-form/job-checklist-form.component.jsx @@ -1,6 +1,5 @@ import { useMutation } from "@apollo/client"; import { Button, Card, Form, Input, notification, Switch } from "antd"; -import dayjs from "../../../../utils/day"; import queryString from "query-string"; import React, { useState } from "react"; import { useTranslation } from "react-i18next"; @@ -14,6 +13,7 @@ import { UPDATE_OWNER } from "../../../../graphql/owners.queries"; import { insertAuditTrail } from "../../../../redux/application/application.actions"; import { selectBodyshop, selectCurrentUser } from "../../../../redux/user/user.selectors"; import AuditTrailMapping from "../../../../utils/AuditTrailMappings"; +import dayjs from "../../../../utils/day"; import ConfigFormComponents from "../../../config-form-components/config-form-components.component"; import DateTimePicker from "../../../form-date-time-picker/form-date-time-picker.component"; @@ -275,7 +275,19 @@ export function JobChecklistForm({ insertAuditTrail, formItems, bodyshop, curren > - + + + + ); diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json index 0011cede6..415edc03b 100644 --- a/client/src/translations/en_us/common.json +++ b/client/src/translations/en_us/common.json @@ -295,7 +295,8 @@ "dailypainttarget": "Scoreboard - Daily Paint Target", "default_adjustment_rate": "Default Labor Deduction Adjustment Rate", "deliver": { - "templates": "Delivery Templates" + "templates": "Delivery Templates", + "require_actual_delivery_date": "Require Actual Delivery" }, "dms": { "apcontrol": "AP Control Number", diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json index 463e310e6..656d1f09b 100644 --- a/client/src/translations/es/common.json +++ b/client/src/translations/es/common.json @@ -295,7 +295,8 @@ "dailypainttarget": "", "default_adjustment_rate": "", "deliver": { - "templates": "" + "templates": "", + "require_actual_delivery_date": "" }, "dms": { "apcontrol": "", diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json index 8ddbeef43..94d26c332 100644 --- a/client/src/translations/fr/common.json +++ b/client/src/translations/fr/common.json @@ -295,7 +295,8 @@ "dailypainttarget": "", "default_adjustment_rate": "", "deliver": { - "templates": "" + "templates": "", + "require_actual_delivery_date": "" }, "dms": { "apcontrol": "",