From 31a809629d54b2f405ecf49eb464eb1a6d0f9d41 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 8 Dec 2020 11:48:54 -0800 Subject: [PATCH] Added inhouse vendor id to shop info page IO-438 --- bodyshop_translations.babel | 21 +++ .../bill-form/bill-form.component.jsx | 4 +- .../help-rescue/help-rescue.component.jsx | 2 +- .../jobs-detail-checklists.component.jsx | 2 +- .../print-center-jobs.component.jsx | 4 +- .../shop-info/shop-info.component.jsx | 139 ++++++++++-------- .../vendors-form/vendors-form.component.jsx | 3 +- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + 10 files changed, 108 insertions(+), 70 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index f79874708..f44c1e97c 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -2720,6 +2720,27 @@ + + inhousevendorid + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + insurance_vendor_id false diff --git a/client/src/components/bill-form/bill-form.component.jsx b/client/src/components/bill-form/bill-form.component.jsx index 86eae294f..edb7c5ba8 100644 --- a/client/src/components/bill-form/bill-form.component.jsx +++ b/client/src/components/bill-form/bill-form.component.jsx @@ -79,7 +79,7 @@ export function BillFormComponent({ { if (form.getFieldValue("jobid") !== null) { loadLines({ variables: { id: form.getFieldValue("jobid") } }); @@ -120,7 +120,7 @@ export function BillFormComponent({ ({ getFieldValue }) => ({ async validator(rule, value) { const vendorid = getFieldValue("vendorid"); - if (vendorid) { + if (vendorid && value) { const response = await client.query({ query: CHECK_BILL_INVOICE_NUMBER, variables: { diff --git a/client/src/components/help-rescue/help-rescue.component.jsx b/client/src/components/help-rescue/help-rescue.component.jsx index ba89b69df..c2e9ad127 100644 --- a/client/src/components/help-rescue/help-rescue.component.jsx +++ b/client/src/components/help-rescue/help-rescue.component.jsx @@ -32,7 +32,7 @@ export default function HelpRescue() { > Enter your six-digit code, then click the Start Download button - below{" "} + below
diff --git a/client/src/components/jobs-detail-checklists/jobs-detail-checklists.component.jsx b/client/src/components/jobs-detail-checklists/jobs-detail-checklists.component.jsx index 9147037fb..0cd08467d 100644 --- a/client/src/components/jobs-detail-checklists/jobs-detail-checklists.component.jsx +++ b/client/src/components/jobs-detail-checklists/jobs-detail-checklists.component.jsx @@ -11,7 +11,7 @@ export default function JobsDetailChecklists({ job }) { - {" "} + diff --git a/client/src/components/print-center-jobs/print-center-jobs.component.jsx b/client/src/components/print-center-jobs/print-center-jobs.component.jsx index 9a94f5492..7fe518540 100644 --- a/client/src/components/print-center-jobs/print-center-jobs.component.jsx +++ b/client/src/components/print-center-jobs/print-center-jobs.component.jsx @@ -55,8 +55,8 @@ export function PrintCenterJobsComponent({ bodyshop, printCenterModal }) { disabled={item.disabled} /> ) - )}{" "} - {" "} + )} + diff --git a/client/src/components/shop-info/shop-info.component.jsx b/client/src/components/shop-info/shop-info.component.jsx index d6ab9ae70..111120f4f 100644 --- a/client/src/components/shop-info/shop-info.component.jsx +++ b/client/src/components/shop-info/shop-info.component.jsx @@ -205,7 +205,7 @@ export default function ShopInfoComponent({ form, saveLoading }) { }, ]} > - + - + - + 3 + + + + {() => { return ( @@ -494,65 +507,67 @@ export default function ShopInfoComponent({ form, saveLoading }) { ); }} - - - - - - + + + + + + + + + + + - +