Update LAR split in config. IO-698
This commit is contained in:
@@ -755,25 +755,41 @@ export default function ShopInfoComponent({ form, saveLoading }) {
|
||||
<Switch />
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label={t("bodyshop.fields.md_hour_split.lab")}
|
||||
name={["md_hour_split", "lab"]}
|
||||
label={t("bodyshop.fields.md_hour_split.prep")}
|
||||
name={["md_hour_split", "prep"]}
|
||||
dependencies={[["md_hour_split", "paint"]]}
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: t("general.validation.required"),
|
||||
},
|
||||
({ getFieldValue }) => ({
|
||||
validator(rule, value) {
|
||||
if (
|
||||
value + getFieldValue(["md_hour_split", "paint"]) ===
|
||||
1
|
||||
) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
return Promise.reject(t("bodyshop.validation.larsplit"));
|
||||
},
|
||||
}),
|
||||
]}
|
||||
>
|
||||
<InputNumber min={0} max={1} precision={2} />
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label={t("bodyshop.fields.md_hour_split.lar")}
|
||||
name={["md_hour_split", "lar"]}
|
||||
label={t("bodyshop.fields.md_hour_split.paint")}
|
||||
name={["md_hour_split", "paint"]}
|
||||
dependencies={[["md_hour_split", "prep"]]}
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: t("general.validation.required"),
|
||||
},
|
||||
({ getFieldValue }) => ({
|
||||
validator(rule, value) {
|
||||
if (
|
||||
value + getFieldValue(["md_hour_split", "prep"]) ===
|
||||
1
|
||||
) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
return Promise.reject(t("bodyshop.validation.larsplit"));
|
||||
},
|
||||
}),
|
||||
]}
|
||||
>
|
||||
<InputNumber min={0} max={1} precision={2} />
|
||||
|
||||
@@ -11,6 +11,7 @@ import ChatAffixContainer from "../../components/chat-affix/chat-affix.container
|
||||
import ConflictComponent from "../../components/conflict/conflict.component";
|
||||
import ErrorBoundary from "../../components/error-boundary/error-boundary.component";
|
||||
import FcmNotification from "../../components/fcm-notification/fcm-notification.component";
|
||||
import preval from "preval.macro";
|
||||
//import FooterComponent from "../../components/footer/footer.component";
|
||||
//Component Imports
|
||||
import HeaderContainer from "../../components/header/header.container";
|
||||
@@ -402,7 +403,9 @@ export function Manage({ match, conflict }) {
|
||||
<BackTop />
|
||||
<div style={{ textAlign: "center", margin: "1rem 0rem" }}>
|
||||
<div>
|
||||
{`ImEX Online V.${process.env.NODE_ENV}-${process.env.REACT_APP_GIT_SHA}`}
|
||||
{`ImEX Online V.${process.env.NODE_ENV} - ${
|
||||
process.env.REACT_APP_GIT_SHA
|
||||
} - ${preval`module.exports = new Date().toLocaleString();`}`}
|
||||
</div>
|
||||
<Link to="/about" target="_blank" style={{ color: "#ccc" }}>
|
||||
Disclaimer
|
||||
|
||||
@@ -216,8 +216,8 @@
|
||||
"md_categories": "Categories",
|
||||
"md_classes": "Classes",
|
||||
"md_hour_split": {
|
||||
"lab": "Body Hour Split",
|
||||
"lar": "Refinish Hour Split"
|
||||
"paint": "Paint Hour Split",
|
||||
"prep": "Prep Hour Split"
|
||||
},
|
||||
"md_ins_co": {
|
||||
"city": "City",
|
||||
@@ -432,6 +432,7 @@
|
||||
"save": "Shop configuration saved successfully. "
|
||||
},
|
||||
"validation": {
|
||||
"larsplit": "Refinish hour split must add up to 1.",
|
||||
"useremailmustexist": "This email is not a valid user."
|
||||
}
|
||||
},
|
||||
|
||||
@@ -216,8 +216,8 @@
|
||||
"md_categories": "",
|
||||
"md_classes": "",
|
||||
"md_hour_split": {
|
||||
"lab": "",
|
||||
"lar": ""
|
||||
"paint": "",
|
||||
"prep": ""
|
||||
},
|
||||
"md_ins_co": {
|
||||
"city": "",
|
||||
@@ -432,6 +432,7 @@
|
||||
"save": ""
|
||||
},
|
||||
"validation": {
|
||||
"larsplit": "",
|
||||
"useremailmustexist": ""
|
||||
}
|
||||
},
|
||||
|
||||
@@ -216,8 +216,8 @@
|
||||
"md_categories": "",
|
||||
"md_classes": "",
|
||||
"md_hour_split": {
|
||||
"lab": "",
|
||||
"lar": ""
|
||||
"paint": "",
|
||||
"prep": ""
|
||||
},
|
||||
"md_ins_co": {
|
||||
"city": "",
|
||||
@@ -432,6 +432,7 @@
|
||||
"save": ""
|
||||
},
|
||||
"validation": {
|
||||
"larsplit": "",
|
||||
"useremailmustexist": ""
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user