IO-233 Add Vehicle History

This commit is contained in:
Patrick Fic
2021-08-30 12:54:43 -07:00
parent a7cf081ed5
commit 7a35dc9b38
8 changed files with 182 additions and 4 deletions

View File

@@ -97,6 +97,12 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
>
<Input />
</Form.Item>
<Form.Item
label={t("bodyshop.fields.dms.cashierid")}
name={["cdk_configuration", "cashierid"]}
>
<Input />
</Form.Item>
</LayoutFormRow>
<LayoutFormRow header={t("bodyshop.labels.dms.cdk.payers")}>
<Form.List name={["cdk_configuration", "payers"]}>

View File

@@ -101,7 +101,8 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
if (!jobId || !bodyshop.cdk_dealerid) return <Result status="404" />;
if (!jobId || !bodyshop.cdk_dealerid || !(data && data.jobs_by_pk))
return <Result status="404" />;
if (loading) return <LoadingSpinner />;
if (error) return <AlertComponent message={error.message} type="error" />;
@@ -110,7 +111,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
<div>
<Row gutter={32}>
<Col span={18}>
{data && data.jobs_by_pk.ro_number}
{data && data.jobs_by_pk && data.jobs_by_pk.ro_number}
<DmsAllocationsSummary socket={socket} jobId={jobId} />
<DmsPostForm
socket={socket}

View File

@@ -480,6 +480,7 @@
"cdk_dealerid": "CDK Dealer ID",
"title": "DMS"
},
"emaillater": "",
"employees": "Employees",
"insurancecos": "Insurance Companies",
"intakechecklist": "Intake Checklist",
@@ -491,6 +492,7 @@
"notespresets": "Notes Presets",
"orderstatuses": "Order Statuses",
"partslocations": "Parts Locations",
"printlater": "",
"rbac": "Role Based Access Control",
"responsibilitycenters": {
"costs": "Cost Centers",
@@ -1374,6 +1376,9 @@
"deliverchecklist": "Deliver Checklist",
"difference": "Difference",
"diskscan": "Scan Disk for Estimates",
"dms": {
"kmoutnotgreaterthankmin": "Mileage out must be greater than mileage in."
},
"documents": "Documents",
"documents-images": "Images",
"documents-other": "Other Documents",
@@ -2163,6 +2168,7 @@
"date": "Ticket Date",
"efficiency": "Efficiency",
"employee": "Employee",
"flat_rate": "",
"memo": "Memo",
"productivehrs": "Productive Hours",
"ro_number": "Job to Post Against"

View File

@@ -480,6 +480,7 @@
"cdk_dealerid": "",
"title": ""
},
"emaillater": "",
"employees": "",
"insurancecos": "",
"intakechecklist": "",
@@ -491,6 +492,7 @@
"notespresets": "",
"orderstatuses": "",
"partslocations": "",
"printlater": "",
"rbac": "",
"responsibilitycenters": {
"costs": "",
@@ -1374,6 +1376,9 @@
"deliverchecklist": "",
"difference": "",
"diskscan": "",
"dms": {
"kmoutnotgreaterthankmin": ""
},
"documents": "documentos",
"documents-images": "",
"documents-other": "",
@@ -2163,6 +2168,7 @@
"date": "",
"efficiency": "",
"employee": "",
"flat_rate": "",
"memo": "",
"productivehrs": "",
"ro_number": ""

View File

@@ -480,6 +480,7 @@
"cdk_dealerid": "",
"title": ""
},
"emaillater": "",
"employees": "",
"insurancecos": "",
"intakechecklist": "",
@@ -491,6 +492,7 @@
"notespresets": "",
"orderstatuses": "",
"partslocations": "",
"printlater": "",
"rbac": "",
"responsibilitycenters": {
"costs": "",
@@ -1374,6 +1376,9 @@
"deliverchecklist": "",
"difference": "",
"diskscan": "",
"dms": {
"kmoutnotgreaterthankmin": ""
},
"documents": "Les documents",
"documents-images": "",
"documents-other": "",
@@ -2163,6 +2168,7 @@
"date": "",
"efficiency": "",
"employee": "",
"flat_rate": "",
"memo": "",
"productivehrs": "",
"ro_number": ""