diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index 36e0ccaaf..eedf35dd5 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -8038,6 +8038,27 @@ + + pbs_serialnumber + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + title false diff --git a/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx b/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx index c22cbe108..992a67240 100644 --- a/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx +++ b/client/src/components/dms-customer-selector/dms-customer-selector.component.jsx @@ -34,10 +34,7 @@ export function DmsCustomerSelector({ bodyshop }) { setVisible(true); setDmsType("pbs"); setcustomerList(customerList); - console.log( - "🚀 ~ file: dms-customer-selector.component.jsx ~ line 37 ~ socket.on ~ customerList", - customerList - ); + }); const onUseSelected = () => { @@ -49,7 +46,7 @@ export function DmsCustomerSelector({ bodyshop }) { const onUseGeneric = () => { setVisible(false); socket.emit( - "cdk-selected-customer", + `${dmsType}selected-customer`, bodyshop.cdk_configuration.generic_customer_number ); setSelectedCustomer(null); @@ -57,7 +54,7 @@ export function DmsCustomerSelector({ bodyshop }) { const onCreateNew = () => { setVisible(false); - socket.emit("cdk-selected-customer", null); + socket.emit(`${dmsType}-selected-customer`, null); setSelectedCustomer(null); }; @@ -102,12 +99,6 @@ export function DmsCustomerSelector({ bodyshop }) { dataIndex: "ContactId", key: "ContactId", }, - { - title: t("jobs.fields.dms.vinowner"), - dataIndex: "vinOwner", - key: "vinOwner", - render: (text, record) => , - }, { title: t("jobs.fields.dms.name1"), key: "name1", @@ -127,6 +118,7 @@ export function DmsCustomerSelector({ bodyshop }) { if (!visible) return null; return ( + {dmsType} (
diff --git a/client/src/components/shop-info/shop-info.general.component.jsx b/client/src/components/shop-info/shop-info.general.component.jsx index 0e713a724..db379792e 100644 --- a/client/src/components/shop-info/shop-info.general.component.jsx +++ b/client/src/components/shop-info/shop-info.general.component.jsx @@ -472,7 +472,7 @@ export default function ShopInfoGeneral({ form }) { label={t("bodyshop.fields.md_email_cc", { template: "parts_order" })} rules={[ { - required: true, + //message: t("general.validation.required"), type: "array", }, @@ -492,7 +492,7 @@ export default function ShopInfoGeneral({ form }) { label={t("bodyshop.fields.md_ded_notes")} rules={[ { - required: true, + //message: t("general.validation.required"), type: "array", }, 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 0dc49cf15..acb47944e 100644 --- a/client/src/components/shop-info/shop-info.responsibilitycenters.component.jsx +++ b/client/src/components/shop-info/shop-info.responsibilitycenters.component.jsx @@ -73,7 +73,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) { return (
- {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber)&& ( <> {form.getFieldValue("cdk_dealerid")} @@ -293,7 +293,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) { */} - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( )} - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( <> {(fields, { add, remove }) => { @@ -3921,7 +3921,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) { > - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && ( - {bodyshop.cdk_dealerid && ( + {(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && (