rrScratch3 - Remove unused fields in RR from responsibility centers
This commit is contained in:
@@ -322,7 +322,7 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
<Input onBlur={handleBlur} />
|
<Input onBlur={handleBlur} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
{hasDMSKey && (
|
{hasDMSKey && !bodyshop.rr_dealerid && (
|
||||||
<>
|
<>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={t("bodyshop.fields.dms.dms_acctnumber")}
|
label={t("bodyshop.fields.dms.dms_acctnumber")}
|
||||||
@@ -408,23 +408,25 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
>
|
>
|
||||||
<Input onBlur={handleBlur} />
|
<Input onBlur={handleBlur} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
{hasDMSKey && !bodyshop.rr_dealerid && (
|
||||||
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
<>
|
||||||
key={`${index}accountitem`}
|
<Form.Item
|
||||||
name={[field.name, "accountitem"]}
|
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
||||||
rules={[{ required: true }]}
|
key={`${index}accountitem`}
|
||||||
>
|
name={[field.name, "accountitem"]}
|
||||||
<Input onBlur={handleBlur} />
|
rules={[{ required: true }]}
|
||||||
</Form.Item>
|
>
|
||||||
{hasDMSKey && (
|
<Input onBlur={handleBlur} />
|
||||||
<Form.Item
|
</Form.Item>
|
||||||
label={t("bodyshop.fields.dms.dms_acctnumber")}
|
<Form.Item
|
||||||
key={`${index}dms_acctnumber`}
|
label={t("bodyshop.fields.dms.dms_acctnumber")}
|
||||||
name={[field.name, "dms_acctnumber"]}
|
key={`${index}dms_acctnumber`}
|
||||||
rules={[{ required: true }]}
|
name={[field.name, "dms_acctnumber"]}
|
||||||
>
|
rules={[{ required: true }]}
|
||||||
<Input onBlur={handleBlur} />
|
>
|
||||||
</Form.Item>
|
<Input onBlur={handleBlur} />
|
||||||
|
</Form.Item>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
{bodyshop.cdk_dealerid && (
|
{bodyshop.cdk_dealerid && (
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|||||||
Reference in New Issue
Block a user