IO-2054 Update responsibility center page.
This commit is contained in:
@@ -16,6 +16,7 @@ import DataLabel from "../data-label/data-label.component";
|
|||||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { createStructuredSelector } from "reselect";
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import { useTreatments } from "@splitsoftware/splitio-react";
|
||||||
|
|
||||||
const SelectorDiv = styled.div`
|
const SelectorDiv = styled.div`
|
||||||
.ant-form-item .ant-select {
|
.ant-form-item .ant-select {
|
||||||
@@ -37,6 +38,11 @@ export default connect(
|
|||||||
|
|
||||||
export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const { Qb_Multi_Ar } = useTreatments(
|
||||||
|
["Qb_Multi_Ar"],
|
||||||
|
{},
|
||||||
|
bodyshop && bodyshop.imexshopid
|
||||||
|
);
|
||||||
|
|
||||||
const [costOptions, setCostOptions] = useState(
|
const [costOptions, setCostOptions] = useState(
|
||||||
[
|
[
|
||||||
@@ -4535,24 +4541,26 @@ export function ShopInfoResponsibilityCenterComponent({ bodyshop, form }) {
|
|||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<LayoutFormRow header={<div>Multiple Payers Item</div>}>
|
{Qb_Multi_Ar.treatment === "on" && (
|
||||||
<Form.Item
|
<LayoutFormRow header={<div>Multiple Payers Item</div>}>
|
||||||
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
<Form.Item
|
||||||
rules={[
|
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
||||||
{
|
rules={[
|
||||||
required: true,
|
{
|
||||||
//message: t("general.validation.required"),
|
required: true,
|
||||||
},
|
//message: t("general.validation.required"),
|
||||||
]}
|
},
|
||||||
name={[
|
]}
|
||||||
"md_responsibility_centers",
|
name={[
|
||||||
"qb_multiple_payers",
|
"md_responsibility_centers",
|
||||||
"accountitem",
|
"qb_multiple_payers",
|
||||||
]}
|
"accountitem",
|
||||||
>
|
]}
|
||||||
<Input />
|
>
|
||||||
</Form.Item>
|
<Input />
|
||||||
</LayoutFormRow>
|
</Form.Item>
|
||||||
|
</LayoutFormRow>
|
||||||
|
)}
|
||||||
<Typography.Title level={4}>
|
<Typography.Title level={4}>
|
||||||
{t("bodyshop.labels.responsibilitycenters.sales_tax_codes")}
|
{t("bodyshop.labels.responsibilitycenters.sales_tax_codes")}
|
||||||
</Typography.Title>
|
</Typography.Title>
|
||||||
|
|||||||
Reference in New Issue
Block a user