From 7a35dc9b38dc0cf46b426329ba7574a8708f27be Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 30 Aug 2021 12:54:43 -0700 Subject: [PATCH] IO-233 Add Vehicle History --- bodyshop_translations.babel | 89 +++++++++++++++++++ ...p-info.responsibilitycenters.component.jsx | 6 ++ client/src/pages/dms/dms.container.jsx | 5 +- client/src/translations/en_us/common.json | 6 ++ client/src/translations/es/common.json | 6 ++ client/src/translations/fr/common.json | 6 ++ server/cdk/cdk-job-export.js | 67 +++++++++++++- server/cdk/cdk-wsdl.js | 1 + 8 files changed, 182 insertions(+), 4 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 9229a3b9f..20252a51f 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -7620,6 +7620,27 @@ + + emaillater + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + employees false @@ -7851,6 +7872,27 @@ + + printlater + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + rbac false @@ -22990,6 +23032,32 @@ + + dms + + + kmoutnotgreaterthankmin + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + + + documents false @@ -35822,6 +35890,27 @@ + + flat_rate + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + memo false diff --git a/client/src/components/shop-info/shop-info.responsibilitycenters.component.jsx b/client/src/components/shop-info/shop-info.responsibilitycenters.component.jsx index dc9bd066b..c50b7b9b0 100644 --- a/client/src/components/shop-info/shop-info.responsibilitycenters.component.jsx +++ b/client/src/components/shop-info/shop-info.responsibilitycenters.component.jsx @@ -97,6 +97,12 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) { > + + + diff --git a/client/src/pages/dms/dms.container.jsx b/client/src/pages/dms/dms.container.jsx index 15672f0f1..dd2dcc500 100644 --- a/client/src/pages/dms/dms.container.jsx +++ b/client/src/pages/dms/dms.container.jsx @@ -101,7 +101,8 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - if (!jobId || !bodyshop.cdk_dealerid) return ; + if (!jobId || !bodyshop.cdk_dealerid || !(data && data.jobs_by_pk)) + return ; if (loading) return ; if (error) return ; @@ -110,7 +111,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
- {data && data.jobs_by_pk.ro_number} + {data && data.jobs_by_pk && data.jobs_by_pk.ro_number}