2211 lines
86 KiB
JavaScript
2211 lines
86 KiB
JavaScript
import { Collapse, Divider, Form, Input, InputNumber, Space, Switch } from "antd";
|
|
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import { connect } from "react-redux";
|
|
import { createStructuredSelector } from "reselect";
|
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
|
import InstanceRenderManager from "../../utils/instanceRenderMgr";
|
|
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
|
|
|
|
const mapStateToProps = createStructuredSelector({
|
|
//currentUser: selectCurrentUser
|
|
bodyshop: selectBodyshop
|
|
});
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
|
});
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ShopInfoResponsibilityCenters);
|
|
|
|
export function ShopInfoResponsibilityCenters({ bodyshop, form }) {
|
|
const { t } = useTranslation();
|
|
//Iteratively build the form items.
|
|
const formItems = [];
|
|
for (let tyCounter = 1; tyCounter <= 5; tyCounter++) {
|
|
const section = [];
|
|
|
|
section.push(
|
|
TaxFormItems({
|
|
typeNum: tyCounter,
|
|
rootElements: true,
|
|
bodyshop
|
|
})
|
|
);
|
|
for (let iterator = 1; iterator <= 5; iterator++) {
|
|
section.push(
|
|
TaxFormItems({
|
|
typeNum: tyCounter,
|
|
typeNumIterator: iterator,
|
|
rootElements: false
|
|
})
|
|
);
|
|
}
|
|
formItems.push(<Space wrap>{section}</Space>);
|
|
formItems.push(<Divider />);
|
|
}
|
|
return (
|
|
<>
|
|
<Divider orientation="left" type="horizontal" style={{ marginTop: ".8rem" }}>
|
|
{t("jobs.labels.cieca_pft")}
|
|
</Divider>
|
|
{formItems}
|
|
|
|
<Collapse>
|
|
<Collapse.Panel forceRender header={t("jobs.labels.cieca_pfl")} key="cieca_pfl">
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAB")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAB", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAD")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAD", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAE")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAE", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAF")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAF", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAG")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAG", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAM")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAM", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAR")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAR", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAS")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAS", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.lbr_types.LAU")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tax_in")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tax_in"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={2} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfl.lbr_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfl", "LAU", "lbr_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
</Collapse.Panel>
|
|
|
|
<Collapse.Panel forceRender header={t("jobs.fields.materials.materials")} key="materials">
|
|
<LayoutFormRow header={t("jobs.fields.materials.MAPA")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.cal_maxdlr")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "cal_maxdlr"]}
|
|
>
|
|
<InputNumber min={0} precision={2} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.cal_opcode")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "cal_opcode"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.tax_ind")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "tax_ind"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfm", "MAPA", "tax_ind"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MAPA", "mat_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("jobs.fields.materials.MASH")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.cal_maxdlr")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "cal_maxdlr"]}
|
|
>
|
|
<InputNumber min={0} precision={2} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.cal_opcode")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "cal_opcode"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_adjp")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_adjp"]}
|
|
>
|
|
<InputNumber min={-100} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.tax_ind")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "tax_ind"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_taxp")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_taxp"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue(["md_responsibility_centers", "cieca_pfm", "MASH", "tax_ind"])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.materials.mat_tx_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfm", "MASH", "mat_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
</Collapse.Panel>
|
|
|
|
<Collapse.Panel forceRender header={t("jobs.labels.cieca_pfo")} key="cieca_pfo">
|
|
<LayoutFormRow noDivider>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.tow_t_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "tow_t_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.tow_t_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "tow_t_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.tow_t_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "tow_t_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.tow_t_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "tow_t_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.tow_t_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "tow_t_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.stor_t_in1")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "stor_t_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.stor_t_in2")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "stor_t_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.stor_t_in3")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "stor_t_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.stor_t_in4")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "stor_t_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.cieca_pfo.stor_t_in5")}
|
|
name={["md_responsibility_centers", "cieca_pfo", "stor_t_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
</Collapse.Panel>
|
|
<Collapse.Panel forceRender header={t("jobs.labels.parts_tax_rates")} key="rates">
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAA")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAA",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAA", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAC")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAC",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAC", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAL")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAL",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAL", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAG")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAG",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAG", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAM")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAM",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAM", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAN")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAN",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
style={{ display: "none" }}
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_ty1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAN", "prt_tx_ty1"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAO")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAO",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAO", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAP")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAP",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAP", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAR")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAR",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAR", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PAS")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PAS",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PAS", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.PASL")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item shouldUpdate>
|
|
{() => {
|
|
return (
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tax_rt"]}
|
|
rules={[
|
|
{
|
|
required: form.getFieldValue([
|
|
"md_responsibility_centers",
|
|
"parts_tax_rates",
|
|
"PASL",
|
|
"prt_tax_in"
|
|
])
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
);
|
|
}}
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in1")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tx_in1"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in2")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tx_in2"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in3")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tx_in3"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in4")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tx_in4"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tx_in5")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "PASL", "prt_tx_in5"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.CCDR")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCDR", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCDR", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCDR", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCDR", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCDR", "prt_tax_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.CCF")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCF", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCF", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCF", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCF", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCF", "prt_tax_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.CCM")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCM", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCM", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCM", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCM", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCM", "prt_tax_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.CCC")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCC", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCC", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCC", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCC", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCC", "prt_tax_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow header={t("joblines.fields.part_types.CCD")}>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_discp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCD", "prt_discp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mktyp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCD", "prt_mktyp"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_mkupp")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCD", "prt_mkupp"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_in")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCD", "prt_tax_in"]}
|
|
valuePropName="checked"
|
|
>
|
|
<Switch />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.parts_tax_rates.prt_tax_rt")}
|
|
name={["md_responsibility_centers", "parts_tax_rates", "CCD", "prt_tax_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
<LayoutFormRow>
|
|
<Form.Item label={t("jobs.fields.tax_tow_rt")} name={["md_responsibility_centers", "tax_tow_rt"]}>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item label={t("jobs.fields.tax_str_rt")} name={["md_responsibility_centers", "tax_str_rt"]}>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
{InstanceRenderManager({ imex: true, rome: false }) ? (
|
|
<>
|
|
<Form.Item
|
|
label={t("jobs.fields.tax_paint_mat_rt")}
|
|
name={["md_responsibility_centers", "tax_paint_mat_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("jobs.fields.tax_shop_mat_rt")}
|
|
name={["md_responsibility_centers", "tax_shop_mat_rt"]}
|
|
>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</>
|
|
) : null}
|
|
<Form.Item label={t("jobs.fields.tax_sub_rt")} name={["md_responsibility_centers", "tax_sub_rt"]}>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
{InstanceRenderManager({ imex: true, rome: false }) ? (
|
|
<Form.Item label={t("jobs.fields.tax_lbr_rt")} name={["md_responsibility_centers", "tax_lbr_rt"]}>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
) : null}
|
|
<Form.Item label={t("jobs.fields.tax_levies_rt")} name={["md_responsibility_centers", "tax_levies_rt"]}>
|
|
<InputNumber min={0} max={100} precision={4} />
|
|
</Form.Item>
|
|
</LayoutFormRow>
|
|
</Collapse.Panel>
|
|
</Collapse>
|
|
</>
|
|
);
|
|
}
|
|
|
|
function TaxFormItems({ typeNum, typeNumIterator, rootElements, bodyshop }) {
|
|
const { t } = useTranslation();
|
|
|
|
if (rootElements)
|
|
return (
|
|
<>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_tax_type", {
|
|
typeNum,
|
|
typeNumIterator
|
|
})}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, `tax_type${typeNum}`]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenters.state_tax")}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, "name"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_accountdesc")}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, "accountdesc"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_accountitem")}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, "accountitem"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
{(bodyshop.cdk_dealerid || bodyshop.pbs_serialnumber) && (
|
|
<Form.Item
|
|
label={t("bodyshop.fields.dms.dms_acctnumber")}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, "dms_acctnumber"]}
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
)}
|
|
</>
|
|
);
|
|
return (
|
|
<>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_tax_tier", {
|
|
typeNum,
|
|
typeNumIterator
|
|
})}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, `ty${typeNum}_tier${typeNumIterator}`]}
|
|
>
|
|
<InputNumber precision={0} min={0} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_tax_thres", {
|
|
typeNum,
|
|
typeNumIterator
|
|
})}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, `ty${typeNum}_thres${typeNumIterator}`]}
|
|
>
|
|
<InputNumber min={0} precision={2} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_tax_rate", {
|
|
typeNum,
|
|
typeNumIterator
|
|
})}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, `ty${typeNum}_rate${typeNumIterator}`]}
|
|
>
|
|
<InputNumber min={0} precision={2} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("bodyshop.fields.responsibilitycenter_tax_sur", {
|
|
typeNum,
|
|
typeNumIterator
|
|
})}
|
|
rules={[
|
|
{
|
|
required: true
|
|
//message: t("general.validation.required"),
|
|
}
|
|
]}
|
|
name={["md_responsibility_centers", "taxes", `tax_ty${typeNum}`, `ty${typeNum}_sur${typeNumIterator}`]}
|
|
>
|
|
<InputNumber min={0} precision={2} />
|
|
</Form.Item>
|
|
</>
|
|
);
|
|
}
|