diff --git a/client/src/components/form-date-picker/form-date-picker.component.jsx b/client/src/components/form-date-picker/form-date-picker.component.jsx
index aba56a059..0f84fe68e 100644
--- a/client/src/components/form-date-picker/form-date-picker.component.jsx
+++ b/client/src/components/form-date-picker/form-date-picker.component.jsx
@@ -16,15 +16,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(FormDatePicker);
const dateFormat = "MM/DD/YYYY";
-export function FormDatePicker({
- bodyshop,
- value,
- onChange,
- onBlur,
- onlyFuture,
- isDateOnly = true,
- ...restProps
- }) {
+export function FormDatePicker({bodyshop, value, onChange, onBlur, onlyFuture, isDateOnly = true, ...restProps }) {
const ref = useRef();
const handleChange = (newDate) => {
diff --git a/client/src/components/header/header.component.jsx b/client/src/components/header/header.component.jsx
index 21a719c2d..8bf53c24d 100644
--- a/client/src/components/header/header.component.jsx
+++ b/client/src/components/header/header.component.jsx
@@ -12,7 +12,8 @@ import Icon, {
FileAddOutlined,
FileFilled,
HomeFilled,
- ImportOutlined, InfoCircleOutlined,
+ ImportOutlined,
+ InfoCircleOutlined,
LineChartOutlined,
PaperClipOutlined,
PhoneOutlined,
@@ -64,7 +65,19 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(setModalContext({context: context, modal: "cardPayment"})),
});
-function Header({handleMenuClick, currentUser, bodyshop, selectedHeader, signOutStart, setBillEnterContext, setTimeTicketContext, setPaymentContext, setReportCenterContext, recentItems, setCardPaymentContext}) {
+function Header({
+ handleMenuClick,
+ currentUser,
+ bodyshop,
+ selectedHeader,
+ signOutStart,
+ setBillEnterContext,
+ setTimeTicketContext,
+ setPaymentContext,
+ setReportCenterContext,
+ recentItems,
+ setCardPaymentContext
+ }) {
const {treatments: {ImEXPay, DmsAp, Simple_Inventory}} = useSplitTreatments({
attributes: {},
@@ -76,7 +89,7 @@ function Header({handleMenuClick, currentUser, bodyshop, selectedHeader, signOut
useEffect(() => {
const isBeta = checkBeta();
- setBetaSwitch(isBeta );
+ setBetaSwitch(isBeta);
}, []);
@@ -186,7 +199,7 @@ function Header({handleMenuClick, currentUser, bodyshop, selectedHeader, signOut
{
key: 'receivables',
label: ({t("menus.header.accounting-receivables")})
- }
+ },
]
if (!((bodyshop && bodyshop.cdk_dealerid) || (bodyshop && bodyshop.pbs_serialnumber)) || DmsAp.treatment === "on") {
@@ -206,17 +219,20 @@ function Header({handleMenuClick, currentUser, bodyshop, selectedHeader, signOut
});
}
- accountingExportChildren.push(
- {
- key: 'exportlogs',
- label: ({t("menus.header.export-logs")})
- },
+ accountingExportChildren.push({
+ type: 'divider',
+ }, {
+ key: 'exportlogs',
+ label: ({t("menus.header.export-logs")})
+ });
+
+ accountingChildren.push(
{
key: 'accountingexport',
icon: ,
label: t("menus.header.export"),
children: accountingExportChildren
- }
+ },
);
const menuItems = [
@@ -467,20 +483,20 @@ function Header({handleMenuClick, currentUser, bodyshop, selectedHeader, signOut
];
- menuItems.push({
- key: 'beta-switch',
- style: { marginLeft: 'auto' },
- label: (
-
-
- Try the new ImEX Online
-
-
- )
- });
+ menuItems.push({
+ key: 'beta-switch',
+ style: {marginLeft: 'auto'},
+ label: (
+
+
+ Try the new ImEX Online
+
+
+ )
+ });
return (
diff --git a/client/src/components/jobs-admin-dates/jobs-admin-dates.component.jsx b/client/src/components/jobs-admin-dates/jobs-admin-dates.component.jsx
index 0ecb1128b..349a2a958 100644
--- a/client/src/components/jobs-admin-dates/jobs-admin-dates.component.jsx
+++ b/client/src/components/jobs-admin-dates/jobs-admin-dates.component.jsx
@@ -69,8 +69,9 @@ export function JobsAdminDatesChange({ insertAuditTrail, job }) {
}),
});
}
+
form.resetFields();
- form.resetFields();
+
setLoading(false);
//Get the owner details, populate it all back into the job.
};
diff --git a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx
index e8a286a15..0dd4e0b4d 100644
--- a/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx
+++ b/client/src/components/jobs-detail-header-actions/jobs-detail-header-actions.component.jsx
@@ -588,6 +588,7 @@ export function JobsDetailHeaderActions({
const menuItems = [
{
+ key: 'schedule',
disabled: !jobInPreProduction || !job.converted || jobRO,
label: t("jobs.actions.schedule"),
onClick: () => {
@@ -603,6 +604,7 @@ export function JobsDetailHeaderActions({
},
},
{
+ key: 'cancelallappointments',
disabled: job.status !== bodyshop.md_ro_statuses.default_scheduled,
label: job.status !== bodyshop.md_ro_statuses.default_scheduled ? (
t("menus.jobsactions.cancelallappointments")
@@ -648,6 +650,7 @@ export function JobsDetailHeaderActions({
)
},
{
+ key: 'intake',
disabled: !!job.intakechecklist || !jobInPreProduction || !job.converted || jobRO,
label: !!job.intakechecklist || !jobInPreProduction || !job.converted || jobRO ? (
t("jobs.actions.intake")
@@ -658,6 +661,7 @@ export function JobsDetailHeaderActions({
)
},
{
+ key: 'deliver',
disabled: !jobInProduction || jobRO,
label: !jobInProduction ? (
t("jobs.actions.deliver")
@@ -668,6 +672,7 @@ export function JobsDetailHeaderActions({
)
},
{
+ key: 'checklist',
disabled: !job.converted,
label:
{t("jobs.actions.viewchecklist")}
@@ -771,6 +776,7 @@ export function JobsDetailHeaderActions({
label: t("menus.jobsactions.duplicate"),
children: [
{
+ key: 'duplicate',
label:
},
{
+ key: 'duplicatenolines',
label: {
setVisibility(true);
},
@@ -974,6 +983,7 @@ export function JobsDetailHeaderActions({
if (!jobRO && job.converted) {
menuItems.push({
+ key: 'voidjob',
label: